vk-java-sdk icon indicating copy to clipboard operation
vk-java-sdk copied to clipboard

Error on places.getCheckins method

Open TimeEscaper opened this issue 7 years ago • 0 comments

Hello!

I am trying to get checkins, related to place, with places.getCheckins method: GetCheckinsResponse checkinsResponse = vk.places().getCheckins(actor).place(place.getId()).execute();

But this method throws ClientException: ClientException: Can't parse json response

As I understood, this is caused by java.lang.NumberFormatException in Gson library when it tries to parse a wall post id in json response - id is returned as a string field in format "userId_postId", but Checkin class has id field as Integer. So, it causes exception: com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "198786164_418"

TimeEscaper avatar Sep 13 '17 00:09 TimeEscaper