Skip to content

Exception when sending a SummarisedFeaturesRequest #52

@keitharnolddsg

Description

@keitharnolddsg

Getting the following exception and message when using a SummarisedFeaturesRequest to the BVProductSentimentsClient:

com.bazaarvoice.bvandroidsdk.ProductSentimentsException: Unable to parse JSON

com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 0.9375 at line 1 column 84 path $.bestFeatures[0].percentPositive

Seems that percentPositive is an int in the BestFeature and WorstFeature classes, but the value from the API is a float, causing this exception.

Using version 8.21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions