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

[bug]: ktor 3.x incompatibility #429

Open
pwspot opened this issue Feb 4, 2025 · 0 comments
Open

[bug]: ktor 3.x incompatibility #429

pwspot opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pwspot
Copy link

pwspot commented Feb 4, 2025

Description

Search client fails with ktor 3.0.0 due to missing io/ktor/client/plugins/contentnegotiation/ContentNegotiation class that seems to have moved to ContentNegotiationConfig.

Changes introduced in https://github.com/ktorio/ktor/pull/3760/files#diff-1bf65602859dcd4cad17f5752ec526be5d9c6fdc8b5725b644876cab3fe2e088

Client

Search

Version

2.1.12

Relevant log output

java.lang.NoClassDefFoundError: io/ktor/client/plugins/contentnegotiation/ContentNegotiation
    at com.algolia.search.configuration.internal.extension.HttpClientKt.configure(HttpClient.kt:26)
    at com.algolia.search.configuration.internal.extension.HttpClientKt$getHttpClient$2.invoke(HttpClient.kt:19)
    at com.algolia.search.configuration.internal.extension.HttpClientKt$getHttpClient$2.invoke(HttpClient.kt:19)
    at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:643)
    at io.ktor.client.HttpClientJvmKt.HttpClient(HttpClientJvm.kt:24)
    at com.algolia.search.configuration.internal.extension.HttpClientKt.getHttpClient(HttpClient.kt:19)
    at com.algolia.search.configuration.internal.ConfigurationSearchImpl.<init>(ConfigurationSearchImpl.kt:34)
    at com.algolia.search.configuration.ConfigurationSearchKt.ConfigurationSearch(ConfigurationSearch.kt:52)
    at com.algolia.search.configuration.ConfigurationSearchKt.ConfigurationSearch$default(ConfigurationSearch.kt:38)
    at com.algolia.search.client.ClientSearchKt.ClientSearch(ClientSearch.kt:180)
    at com.algolia.search.client.ClientSearchKt.ClientSearch$default(ClientSearch.kt:174)
@pwspot pwspot added the bug Something isn't working label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant