Updated url and added more informative error message