error occurred during API call