Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED c.f.j.c.JsonParseException: Numeric value out of range of int #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

surgat
Copy link

@surgat surgat commented Dec 27, 2021

I'm not Java developer, so this pull request is more like an example.

Problem: My UserId no longer fits into Int

2021-12-27 15:21:18.778+0000 [id=89]    SEVERE  o.t.t.meta.logging.BotLogger#severe: BOTSESSION
com.fasterxml.jackson.core.JsonParseException: Numeric value (********) out of range of int
 at [Source: (String)"{"ok":true,"result":[{"update_id":26962324,
"message":{"message_id":71,"from":{"id":********,"is_bot":false,"first_name":"********","language_code":"ru"},"chat":{"id":********,"first_name":"********","type":"private"},"date":1640586660,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}},{"update_id":26962325,
"message":{"message_id":72,"from":{"id":********,"is_bot":false,"first_name":"********","language_code":"ru"},"chat":{"id":********,"first_name":"********","type":"private"}"[truncated 1526 chars]; line: 2, column: 51]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:693)
................................................

It is fixed in the version TelegramBots API 5.1:
rubenlagus/TelegramBots@6653ffe#diff-2d34b08ac04313d2bb1afd92284a4146936a365ae6c8f8a614523420fdcf1848

I laid out the changes in this pull request with which the plugin was compiled and worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants