org.telegram.telegrambots.exceptions.TelegramApiRequestException: Unable to deserialize response

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips


The fingerprint generator in Silhouette got wrong parameter so it failed to decode the json from the PLAY_SESSION cookie.

Expert tip

Check if you forgot to set the "data" field inside your request. If you did set it, check if it's being serialized before sending, and if it's being serialized the right way.

Solutions on the web

via GitHub by ospavel
, 10 months ago
Unable to deserialize response
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', ' false' or 'null') at [Source: <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.10.0</center> </body> </html> ; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(
at org.telegram.telegrambots.api.methods.updates.GetUpdates.deserializeResponse(
at org.telegram.telegrambots.updatesreceivers.DefaultBotSession$

Users with the same issue

Once, 5 days ago
Once, 5 days ago
Once, 3 weeks ago
3 times, 3 weeks ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.