catch type error in url fetch