Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError while uploadMedia #100

Open
lilaboc opened this issue Jul 27, 2023 · 2 comments
Open

NoSuchMethodError while uploadMedia #100

lilaboc opened this issue Jul 27, 2023 · 2 comments
Assignees
Labels
breaking-change bug Something isn't working

Comments

@lilaboc
Copy link
Contributor

lilaboc commented Jul 27, 2023

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?

@github-actions
Copy link

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!

@Bindambc
Copy link
Owner

Bindambc commented Aug 4, 2023

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

@Bindambc Bindambc added bug Something isn't working breaking-change labels Aug 18, 2023
tmoreira2020 pushed a commit to tmoreira2020/whatsapp-business-java-api that referenced this issue Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants