Skip to content

openai.APITimeout error #2862

@hugokoopmans

Description

@hugokoopmans

I wanted to run gpt-04-mini but failed to get it running, now reverting to gpt-4.1-mini failes with openAI API timeout?

I have recreated the openai service several times, deleted and purged it. And now rebuild from scratch, still the same issue...

azd auth login
azd env new
azd up

gives

`The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/workspaces/azure-openai-search-dikw/app/backend/app.py", line 210, in format_as_ndjson
async for event in r:
File "/workspaces/azure-openai-search-dikw/app/backend/approaches/chatreadretrieveread.py", line 215, in run_with_streaming
extra_info, chat_coroutine = await self.run_until_final_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-openai-search-dikw/app/backend/approaches/chatreadretrieveread.py", line 302, in run_until_final_call
extra_info = await self.run_search_approach(messages, overrides, auth_claims)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-openai-search-dikw/app/backend/approaches/chatreadretrieveread.py", line 377, in run_search_approach
await self.create_chat_completion(
File "/workspaces/azure-openai-search-dikw/.venv/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 2589, in create
return await self._post(
^^^^^^^^^^^^^^^^^
File "/workspaces/azure-openai-search-dikw/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1794, in post
return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-openai-search-dikw/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1547, in request
raise APITimeoutError(request=request) from err
openai.APITimeoutError: Request timed out.
[2025-12-09 09:46:46 +0000] [120260] [INFO] 127.0.0.1:52054 POST /chat/stream 1.1 200 - 21714807`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions