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

Expected a SETTINGS frame but was WINDOW_UPDATE #8524

Closed
Blarc opened this issue Aug 22, 2024 · 6 comments
Closed

Expected a SETTINGS frame but was WINDOW_UPDATE #8524

Blarc opened this issue Aug 22, 2024 · 6 comments
Labels
bug Bug in existing code

Comments

@Blarc
Copy link

Blarc commented Aug 22, 2024

Describe the bug
When making a request to OpenAI, an IOException is thrown. The error java.lang.RuntimeException: java.io.IOException: Expected a SETTINGS frame but was WINDOW_UPDATE is indicative of a problem that likely arises at the level of the HTTP/2 protocol, within model.generate call.

Supposedly works fine on Windows 10, but not on Ubuntu 22.04 source.

Log and Stack trace
tail_log.txt

To Reproduce
I am not sure how to reproduce, since it doesn't always happen. The langchain4j is used as a dependency for IntelliJ plugin.

Expected behavior
The request to OpenAI to go through.

Please complete the following information:

  • LangChain4j version: 0.33.0
  • LLM(s) used: OpenAI (gpt-4o)
  • Java version: 17

Additional context
Blarc/ai-commits-intellij-plugin#226

@Blarc Blarc added the bug Bug in existing code label Aug 22, 2024
@yschimke
Copy link
Collaborator

Does it happen for you, or for some other developer? Are there any proxies in the way, like charles?

Anything that might be affecting the stream at the http/2 layer?

@Blarc
Copy link
Author

Blarc commented Aug 23, 2024

Maybe @Trileon12 can provide that information, since he reported the issue.

@Trileon12
Copy link

Actually, on Ubuntu, I don't use a proxy (i mean ide proxy) because when I do, I receive a different error related to unsuccessful proxy authentication.
But... at the router level, split tunneling is used, and requests to this server are currently routed through a WireGuard vpn connection. Could this be causing the issue?
Interestingly, on Windows, the same application in the same LAN works without triggering the "WINDOW_UPDATE" error. Additionally, it also works with proxy settings enabled in the ide without any issues.

@yschimke
Copy link
Collaborator

yschimke commented Aug 23, 2024

Wireguard should be at a lower layer, so shouldn't intercept any http/2 traffic

@yschimke
Copy link
Collaborator

Unless we can reproduce, it's going to be hard to fix.

You may want to provide an option to force http/1.1 in the OkHttp client. Or clearing the proxy in code as an option, see if that fixes the auth issue.

@swankjesse
Copy link
Collaborator

No action for us to take on this.

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

No branches or pull requests

4 participants