if you cant parse the url, return an error