Skip to content

fix: 502 gateway error #509

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sally-langshuang
Copy link

Disables HTTP/2 and forces the client to use HTTP/1.1.
Some servers (especially custom/local deployments like Ollama) might not fully support or handle HTTP/2 properly, which can cause unexpected issues.

configures the underlying HTTP transport to retry failed requests up to 3 times.
This is helpful for flaky local servers, slow responses, or temporary network hiccups.
httpx by default does not retry, so this can make your client more resilient.

@ParthSareen
Copy link
Member

HTTP/2 is pretty standard for most servers, doesn't make sense to default to 1.1. What issues were you running into?

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

Successfully merging this pull request may close these issues.

2 participants