Skip to content

fix: upgrade httpx-aiohttp from 0.1.8 to 0.1.9 to resolve production timeout issues#2696

Closed
shubhhh19 wants to merge 3 commits into
openai:mainfrom
shubhhh19:fix/upgrade-httpx-aiohttp-to-0.1.9
Closed

fix: upgrade httpx-aiohttp from 0.1.8 to 0.1.9 to resolve production timeout issues#2696
shubhhh19 wants to merge 3 commits into
openai:mainfrom
shubhhh19:fix/upgrade-httpx-aiohttp-to-0.1.9

Conversation

@shubhhh19

Copy link
Copy Markdown

Description: Fixes issue #2688 by upgrading httpx-aiohttp from 0.1.8 to 0.1.9 to resolve production timeout issues when using the aiohttp backend.

Changes:

  • Updated 'pyproject.toml' to require 'httpx_aiohttp>=0.1.9'
  • Updated 'requirements.lock' and 'requirements-dev.lock' to use 'httpx-aiohttp==0.1.9'
  • Added an example demonstrating aiohttp backend usage and timeout handling

Testing:

  • Verified httpx-aiohttp 0.1.9 is properly installed
  • Tested basic connectivity with aiohttp backend
  • Tested concurrent requests (common timeout scenario)
  • Tested timeout handling and error recovery
  • Tested production-ready retry logic

Impact:
This upgrade resolves timeout issues that users experienced in production when using:

pip install openai[aiohttp]
client = AsyncOpenAI(http_client=DefaultAioHttpClient())

Fixes #2688

- Update pyproject.toml to require httpx_aiohttp>=0.1.9
- Update requirements.lock and requirements-dev.lock to use httpx-aiohttp==0.1.9

Fixes openai#2688
- Update pyproject.toml to require httpx_aiohttp>=0.1.9
- Update requirements.lock and requirements-dev.lock to use httpx-aiohttp==0.1.9
- Add example demonstrating aiohttp backend usage and timeout handling

Fixes openai#2688
@shubhhh19 shubhhh19 requested a review from a team as a code owner October 17, 2025 21:11
@AshuBik

AshuBik commented Oct 17, 2025

Copy link
Copy Markdown

@shubhhh19 were you able to replicate the issue 2688, if yes can you please share steps to do the same as well ?

@karpetrosyan

Copy link
Copy Markdown
Collaborator

This was already released in 2.5.0 by our codegen. Thanks for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open AI Clients starts timing out after some time in production

3 participants