Throw in case the object is an error
fixed dependency to fix url bug