Throws error if no url provided