-
Notifications
You must be signed in to change notification settings - Fork 14
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
GenerateContent method hangs #54
Comments
Hi @Ar4ics That's an issue with HTTP/3 or QUIC support in .NET. Right now, I'd suggest to disable HTTP/3 support in your application. This can be done in the project file or in the AppContext.
or
This has been discussed here #34 See also here: https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-http3 |
@jochenkirstaetter understoood, thanks. |
Hi @Ar4ics
Slightly only. ;-) You might check whether Cheers, JoKi |
@jochenkirstaetter also for example I am passing cancellation token |
Hi @Ar4ics Once the request is on the wire waiting for the response... How would you issue a cancellation? You got some sample? Maybe we take this to another issue or as a discussion. Cheers, JoKi |
@jochenkirstaetter actually its not big deal for me.
As you can see, RestSharp's RestClient type supports cancellation. |
Thanks, I'll have a look. |
Hi @Ar4ics This had been improved in Release v2.1.0 Hope this helps. JoKi |
I dont know if this issue is just mine or not, but for me the method
GenerateContentStream
is working fine (just 3-5 seconds waiting for completion of the request), whileGenerateContent
sometimes hangs and throwsConnection handshake was canceled due to the configured timeout of 00:00:10 seconds elapsing. (generativelanguage.googleapis.com:443)
These 2 methods Im using:
Im using model Gemini 2.0 Flash Exp, other settings are default.
I wonder, is there a significant difference in the implementation of Stream and non-Stream methods?
The text was updated successfully, but these errors were encountered: