Error occurred while tyring to connect to API.