-
Notifications
You must be signed in to change notification settings - Fork 201
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
java.lang.NoClassDefFoundError: io/ktor/client/plugins/contentnegotiation/ContentNegotiation #402
Comments
Experiencing the same issue with a similar setup as described above. |
The same issue |
the same issue |
The solution is to use beta version - |
thank you it worked |
Same issue here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Facing this class not found exception:
Exception in thread "main" java.lang.NoClassDefFoundError: io/ktor/client/plugins/contentnegotiation/ContentNegotiation
at com.aallam.openai.client.internal.HttpClientKt$createHttpClient$configuration$1.invoke(HttpClient.kt:34)
at com.aallam.openai.client.internal.HttpClientKt$createHttpClient$configuration$1.invoke(HttpClient.kt:24)
at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:42)
at io.ktor.client.HttpClientJvmKt.HttpClient(HttpClientJvm.kt:23)
at com.aallam.openai.client.internal.HttpClientKt.createHttpClient(HttpClient.kt:89)
at com.aallam.openai.client.OpenAIKt.OpenAI(OpenAI.kt:60)
when I use both kotlin serialization (which uses server side ContentNegotiation) and OpenAI client whose HTTP client uses client side ContentNegotiation. I think that is what is causing this error.
There was another issue reported and closed, however, resolution pointed to Ktor 3+ which I am already on. Any idea what may I be missing?
Environment
Additional Info
Add any other relevant context here.
The text was updated successfully, but these errors were encountered: