handling invalid response from api resolved request