Not compatible with Quarkus: java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create
AbdallahAhmed opened this issue · comments
Caused by: java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(byte[])' at com.meilisearch.sdk.http.CustomOkHttpClient.<clinit>(CustomOkHttpClient.java:20) at com.meilisearch.sdk.HttpClient.<init>(HttpClient.java:31) at com.meilisearch.sdk.Config.<init>(Config.java:77) at com.meilisearch.sdk.Config.<init>(Config.java:39) at com.meilisearch.sdk.Config.<init>(Config.java:29)
Seems that OkHttp version used isn't compatible with Quarkus
Hi @AbdallahAhmed which meilisearch-java and Java version are you using?
@brunoocasali meilisearch-java version 0.11.0 with Java 17
Hi @AbdallahAhmed I did some digging into the code, and I couldn't find a reproduce the error. I sent more information here:
Can you check it and may help me reproduce the issue?
Thanks in advance!
Hi @AbdallahAhmed, I still want to hear from you, but I'll close this issue because we just released v0.11.1 with do not allow the users to run the library without having the okhttp3.
So your error is fixed there. :D