basic error checking for API timeout