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

VertexAi depending ktor 2, time to update? #6737

Open
Curwe opened this issue Mar 5, 2025 · 3 comments
Open

VertexAi depending ktor 2, time to update? #6737

Curwe opened this issue Mar 5, 2025 · 3 comments
Labels

Comments

@Curwe
Copy link

Curwe commented Mar 5, 2025

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Meerkat Feature Drop Canary 7

  • Firebase Component: BOM, Crashlytics, Config, Messaging, Analytics and Vertexai

  • Component version: 33.10.0

  • Ktor version 3.1.1

  • Coil 3.1.0

[REQUIRED] Step 3: Describe the problem

Vertexai sdk is depending on a older version of ktor 2. And it makes apps running ktor 3 struggling.
I did read this on this closed issue #6413 that ktor 3 was to new and you want to wait, it's been a while now so I'll raise this issue again.

Steps to reproduce:

You can run the app with ktor 3 enabled. But as soon as I call generativeModel.startChat() the client crash with Caused by: java.lang.ClassNotFoundException: Didn't find class "io.ktor.client.plugins.HttpTimeout"

Hope this can be fixed in a soon rather then later release.
Cheers.

@google-oss-bot
Copy link
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@Curwe Curwe changed the title VertexAi depending on old ktor VertexAi depending ktor 2, time to update? Mar 5, 2025
@lehcar09
Copy link
Contributor

lehcar09 commented Mar 6, 2025

Hi @Curwe, thank you for reaching out. As mentioned in the comment here, upgrading a project to Ktor 3.0.0, will cause breaking changes because it will be a project level upgrade.

We understand that Ktor 3.x.x will resolve the issue "NoClassDefFoundError of HTTPTimeoutCapability. I’ll bring it up to our engineers and see what we can do here.

I'll go ahead and mark this as a feature request. While we are unable to promise any timeline for this, we'll definitely keep this under our radar.

P.S. For folks who find this useful, adding an emoji thumbs up on the original post can help us prioritize adding this to the roadmap.

@lehcar09 lehcar09 added the type: feature request New feature or request label Mar 6, 2025
@Curwe
Copy link
Author

Curwe commented Mar 7, 2025

Thanks, happy about that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants