vk-java-sdk
vk-java-sdk copied to clipboard
Error on places.getCheckins method
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"