intuit / QuickBooks-V3-Java-SDK

Java SDK for QuickBooks REST API v3 services
Apache License 2.0
66 stars 144 forks source link

Bug Report: Deserialization Error in Intuit QuickBooks API #216

Open quentinramas opened 3 months ago

quentinramas commented 3 months ago

Issue Description: I am encountering an error when calling the above method to retrieve all invoices from my QuickBooks account. The error occurs during the deserialization process and is preventing the retrieval of the data.

Context: I am calling the Intuit API to retrieve all invoices from my QuickBooks account. During this process, the API fails to deserialize the response data correctly, specifically the LineDetailTypeEnum field.

Method: dataService.findAll(new Invoice())

Technical Details:

API Version: 6.3.0 Jackson Version: 2.16.0 (Note: This is different from the API's Jackson version 2.15.2 due to other dependencies in my application)

I believe the discrepancy in Jackson versions might be contributing to the deserialization error. However, downgrading Jackson to 2.15.2 is not feasible due to other dependencies.

Could you please investigate this issue and provide guidance on how to resolve it? If further information is required, I am more than happy to provide additional details.

Thank you for your assistance in this matter.

See attached the error log.

Best regards,

Quentin

ErrorLog.txt

Malarvzh commented 2 months ago

@quentinramas - We've confirmed that version 6.3.0 works without any issues when retrieving invoices. However, you're encountering the exception com.fasterxml.jackson.databind.exc.InvalidFormatException because you've changed the Jackson version. To resolve this, we recommend using the API-supported Jackson version, which is 2.9.10. If you continue to experience problems, please let us know.