#community-help

Issues with okhttp Dependency in Quarkus app

TLDR Antonis faced errors while upserting a document in a Java Quarkus app. Kishore Nallan suggested excluding the okhttp dependency from Typesense to resolve the conflict.

Powered by Struct AI

1

3
1mo
Solved
Join the chat
Aug 23, 2023 (1 month ago)
Antonis
Photo of md5-faf0fdba0b6739a6706f05c15b6738c6
Antonis
10:45 PM
Hello everyone!

I'm working with the client for Java on a Quarkus app, and I'm getting this when upserting a single document:
java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'

Has anyone encountered it?
Aug 24, 2023 (1 month ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:30 AM
You probably are using another version of okhttp in your own project so that's causing conflicts. You have to exclude this dependency from Typesense.

1

Antonis
Photo of md5-faf0fdba0b6739a6706f05c15b6738c6
Antonis
07:08 AM
Thank you my friend! I will try it!