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
Aug 23, 2023 (1 month ago)
Antonis
Antonis
10:45 PMHello everyone!
I'm working with the client for Java on a Quarkus app, and I'm getting this when upserting a single document:
Has anyone encountered it?
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
Kishore Nallan
04:30 AMYou 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
Antonis
07:08 AMThank you my friend! I will try it!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Typesense Java Client Okhttp Version Conflict
Ashish faced an error with Typesense Java okhttp version. Kishore Nallan helped identify the conflict with Spring Boot version, which updated okhttp to a compatible version.
40
6mo
Solved
UnrecognizedPropertyException in Java Client Search
Atul encountered an UnrecognizedPropertyException error using the Java client. Kishore Nallan suggested updating to the latest beta version, resolving the issue.
11
7mo
Solved
Resolving Duplicate Classes Error with Typesense and Kotlin
Matt faced "Duplicate class" errors in a Kotlin Android app after adding Typesense dependency. Kishore Nallan suggested excluding conflicting groups which resolved the issue.
13
8mo
Solved