-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error while deserializing response (getUpdate) #1
Comments
Please, @Migsi, could you test your bot plugin with this version? Thanks! |
Thank you for the update! I'll test it as soon as possible! |
Thank you for testing! I hope it will work and release new version with this fix and new inline bots to Spigot, in order to check about Gson later ;) |
After testing it today, the issue remains the same :/ Could it be my fault? This is the code I use to test it: `
` EDIT: Sorry for bad format, but the editor seems to not recognize the backticks -.-' |
No, is not your fault. Yesterday I reproduced the bug and i'm triying to fix it (it is still alive D:! ) but is really really annoying. I rewrited completly the getUpdates() method, not using jackson mapper at all, and I discover that the problem comes from ['Message' object.]
(https://github.com/Cadiducho/Minegram/blob/master/src/com/cadiducho/minegram/api/Message.java) So I really don't know. I can't fix it (yet)... I'll try Gson's mapper... sorry for the inconvenience! |
No problem, I'm in no hurry with my project. It's fine for me to see that you're trying to solve this! :) It's anyways a nice job you're doing, this API is pretty cool :) What belongs to this problem, I must sincerly say that I don't have enough java skills to help you that much :/ And the fact I don't know anything about the Jackson lib doesn't make this better... I'll try to read your sources and, if I find anything helpful, give you advises as good as I can. :) |
Good news! Gson has simplified my code a lot and... getUpdates() method is working! All builders of objects have been changed, and I will test it before upload new version. In a few hours it will be uploaded in Spigot, Github and Maven repo |
- Removed old code - Loving more Google
Thank you for fixing this! :) |
Already late? :( |
Yes, is too late, I use gson now :( |
This issue doesn't belong to the Minegram itself, it seems to be an error of the used json-lib.
When trying to deserialize updates the following error appears:
The text was updated successfully, but these errors were encountered: