whatsapp-business-java-api icon indicating copy to clipboard operation
whatsapp-business-java-api copied to clipboard

Error in Parsing WhatsApp Business Phone Number Response - New fields

Open valentinogiardino opened this issue 2 years ago • 1 comments

Encountered an error while parsing the response from WhatsApp Business Phone Numbers API after the September 12, 2023 update. The issue seems to be related to a missing property, platform_type, in the PhoneNumber class causing deserialization to fail:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"platform_type\" (class com.whatsapp.api.domain.phone.PhoneNumber), not marked as ignorable (6 known properties: \"verified_name\", \"code_verification_status\", \"name_status\", \"display_phone_number\", \"id\", \"quality_rating\"])\n at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 225] (through reference chain: com.whatsapp.api.domain.phone.PhoneNumber[\"platform_type\"])

CHANGELOG September 12, 2023

valentinogiardino avatar Nov 11 '23 02:11 valentinogiardino

Hello and welcome! We're glad to see that you've opened your first issue. We appreciate your contribution and would love to hear more about the problem you're experiencing. Our team is actively monitoring this repository and we will do our best to respond to your issue as soon as possible. Thank you for using our project and we look forward to working with you!

github-actions[bot] avatar Nov 11 '23 03:11 github-actions[bot]

https://github.com/Bindambc/whatsapp-business-java-api/releases/tag/v0.4.1

Bindambc avatar May 08 '24 01:05 Bindambc