growthbook / growthbook-sdk-java

The Java SDK for GrowthBook (JVM, Android)
https://docs.growthbook.io/lib/java
MIT License
7 stars 10 forks source link

Failed to convert String to JsonObject in GBContext.java class #14

Closed WemyVieira closed 1 year ago

WemyVieira commented 1 year ago

image

image

image

tinahollygb commented 1 year ago

@WemyVieira thanks for the submission. Is this issue still happening?

I've added a unit test here to try to reproduce your issue. It appears to be passing with data similar to yours, so based on what I see in the screenshots, I'm not able to reproduce the issue with the features JSON string and attributes JSON string you provided.

Can you copy/paste (in text, not in image) the following:

Are you able to create a sample app where this error is reproducible?

tinahollygb commented 1 year ago

Can you also share your Gson configuration? While we are using different instances of Gson and the GsonBuilder, I wanted to make sure your configuration wasn't being applied to ours. For example, one configuration option that could be problematic is if you called GsonBuilder.excludeFieldsWithoutExposeAnnotation() on your GsonBuilder but that configuration should only impact your GsonBuilder instance and not ours.

tinahollygb commented 1 year ago

@WemyVieira have you had a chance to explore this further? Are you still experiencing the problem?

tinahollygb commented 1 year ago

Closing as stale. If you can provide a way to reproduce this, please share and feel free to re-open.