You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using java-vk-bots-longpoll-api version (replace with version you are using): 4.1.0
Could you please help me to understand what is wrong here?
My thoughts: This is issue with payload. I am sending its as an string. But api.longpoll.bots.adapters.deserializers.PayloadDeserializer tries to parse it as json. Yes, i can fix this issue with just changing payload. But i hope you`ll fix that
I'm executing this request (replace with URI from your logs):
https://lp.vk.com/wh*******
with parameters (replace with params from your logs):
wait=25&act=a_check&key=***&ts=19695
and I'm receiving (replace with response from your logs):
Here is the code example (replace with your code example):
Stacktrace:
I'm using
java-vk-bots-longpoll-api
version (replace with version you are using):4.1.0
Could you please help me to understand what is wrong here?
My thoughts: This is issue with payload. I am sending its as an string. But
api.longpoll.bots.adapters.deserializers.PayloadDeserializer
tries to parse it as json. Yes, i can fix this issue with just changing payload. But i hope you`ll fix thatI think fixed version would be:
Because
GSON.fromJson(jsonElement.getAsString(), JsonElement.class)
cannot process simple strings.Good luck! And have a good day!
The text was updated successfully, but these errors were encountered: