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

When the query effect data type returns 95, there will be a gson parsing exception

Open shenhao217 opened this issue 4 years ago • 1 comments

Hello, I found a bug in version 0.29.0. When the data type returns LiquidityPoolRevokedEffectResponse, the return parameter reserves_revoked should be accepted as an array instead of entity classes.

shenhao217 avatar Dec 27 '21 05:12 shenhao217

Same here. Try it with version 0.29.0

public static void main(String[] args) throws IOException {
   Page<EffectResponse> page = server.effects().forLedger(38837940).cursor("166807682144149505-6")
           .order(RequestBuilder.Order.ASC).limit(1).execute();
   System.out.println("done");

}

will throw a

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $.reserves_revoked

exception.

TimC71 avatar Jan 04 '22 10:01 TimC71

This issue is still happening with version 0.40. SDK. When will it be resolved?

gologo13 avatar Aug 15 '23 21:08 gologo13

Sorry for the inconvenience caused. The issue have been fixed in 0.40.1.

overcat avatar Sep 07 '23 16:09 overcat