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

NoSuchMethodError while uploadMedia

Open lilaboc opened this issue 2 years ago • 2 comments
trafficstars

I got this error when trying to uploadmedia

java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.MultipartBody.create(byte[], okhttp3.MediaType)' at com.whatsapp.api.impl.WhatsappBusinessCloudApi.uploadMedia(WhatsappBusinessCloudApi.java:71) ~[whatsapp-business-java-api-v0.3.2.jar:na]

solved by adding okhttp3 4.11.0 into dependency

Perhaps stable version of okhttp3 is preferred?

lilaboc avatar Jul 27 '23 04:07 lilaboc

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 Jul 27 '23 04:07 github-actions[bot]

Hello @lilaboc , I'm looking into this issue.

Bindambc avatar Aug 04 '23 23:08 Bindambc