We are probably getting a Format Exception because the API response isn't returning valid JSON often this happens when the request fails and returns an HTML error page instead (like a 404 or 403). It's a good idea to check the response before trying to decode it.