openclaw - 💡(How to fix) Fix [Bug]: Gateway timeouts on all OpenAI calls after auto-update to 2026.5.2 [3 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#77070Fetched 2026-05-05 05:52:48
View on GitHub
Comments
3
Participants
4
Timeline
10
Reactions
3
Author
Timeline (top)
commented ×3labeled ×2subscribed ×2closed ×1

After automatic update from 2026.4.29 to 2026.5.2, agent never replies. models.list takes 18-40s, event_loop_delay up to 17000ms, profile sha256:a0ebe3f799a6 times out on every run. API key works via direct curl. Setting api=openai-completions did not fix it.

Root Cause

After automatic update from 2026.4.29 to 2026.5.2, agent never replies. models.list takes 18-40s, event_loop_delay up to 17000ms, profile sha256:a0ebe3f799a6 times out on every run. API key works via direct curl. Setting api=openai-completions did not fix it.

Code Example

[agent/embedded] llm-idle-timeout: openai/gpt-4.1-mini produced no reply before the idle watchdog
[fetch-timeout] fetch timeout after 60000ms url=https://api.openai.com/v1/responses
[diagnostic] liveness warning: eventLoopDelayMaxMs=17498 eventLoopUtilization=0.999
[agent/embedded] Profile openai:default timed out. profileId=sha256:a0ebe3f799a6
models.list took 40396ms on every connection
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After automatic update from 2026.4.29 to 2026.5.2, agent never replies. models.list takes 18-40s, event_loop_delay up to 17000ms, profile sha256:a0ebe3f799a6 times out on every run. API key works via direct curl. Setting api=openai-completions did not fix it.

Steps to reproduce

  1. Install OpenClaw 2026.5.2 on Ubuntu 24.04 VPS
  2. Configure openai/gpt-4.1-mini as the agent model
  3. Open webchat and send any message to the agent
  4. Observe agent shows "thinking" indefinitely and never replies
  5. Check logs: models.list takes 18-40s, event_loop_delay up to 17000ms, profile sha256:a0ebe3f799a6 times out on every embedded run

Expected behavior

Agent replies normally as it did on version 2026.4.29

Actual behavior

Agent shows "thinking" indefinitely and never replies. Logs show:

  • models.list takes 18-40 seconds on every connection
  • event_loop_delay up to 17000ms
  • llm-idle-timeout: openai/gpt-4.1-mini produced no reply before the idle watchdog
  • Profile sha256:a0ebe3f799a6 times out on every embedded run
  • fetch timeout after 60000ms on api.openai.com/v1/responses
  • API key works perfectly via direct curl to /v1/chat/completions

OpenClaw version

2026.5.2 (8b2a6e5)

Operating system

Ubuntu 24.04

Install method

npm global

Model

openai/gpt-4.1-mini

Provider / routing chain

openclaw -> api.openai.com/v1

Additional provider/model setup details

api set to openai-completions. Direct curl to api.openai.com/v1/chat/completions works with same key. Timeout occurs on /v1/responses endpoint which OpenClaw uses internally.

Logs, screenshots, and evidence

[agent/embedded] llm-idle-timeout: openai/gpt-4.1-mini produced no reply before the idle watchdog
[fetch-timeout] fetch timeout after 60000ms url=https://api.openai.com/v1/responses
[diagnostic] liveness warning: eventLoopDelayMaxMs=17498 eventLoopUtilization=0.999
[agent/embedded] Profile openai:default timed out. profileId=sha256:a0ebe3f799a6
models.list took 40396ms on every connection

Impact and severity

Affected: Single user, all webchat sessions Severity: Critical (blocks all agent functionality completely) Frequency: 100% of attempts since auto-update to 2026.5.2 Consequence: Agent is completely unusable, all messages timeout

Additional information

Last known good version: 2026.4.29 First known bad version: 2026.5.2 Broke after automatic update while machine was idle. Tried setting models.providers.openai.api=openai-completions — did not fix. Direct curl to /v1/chat/completions works perfectly with same API key.

extent analysis

TL;DR

The issue is likely due to a regression in OpenClaw version 2026.5.2, causing the agent to timeout when trying to fetch responses from the OpenAI API.

Guidance

  • Verify that the API key is correctly configured and working by using direct curl requests to the OpenAI API, as mentioned in the issue.
  • Check the OpenClaw documentation to see if there are any known issues or workarounds for the models.list timeout and event_loop_delay errors.
  • Consider downgrading to the last known good version, 2026.4.29, to see if the issue is resolved.
  • Investigate the difference in API endpoints used by OpenClaw (/v1/responses) and the working direct curl requests (/v1/chat/completions) to understand the potential cause of the timeout.

Example

No code snippet is provided as the issue seems to be related to configuration and versioning rather than code.

Notes

The issue seems to be specific to the OpenClaw version 2026.5.2 and the openai/gpt-4.1-mini model. The fact that direct curl requests work with the same API key suggests that the issue is not with the API key itself, but rather with the OpenClaw configuration or version.

Recommendation

Apply workaround: Downgrade to version 2026.4.29, as it is the last known good version and may resolve the issue until a fix is available for version 2026.5.2.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Agent replies normally as it did on version 2026.4.29

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Gateway timeouts on all OpenAI calls after auto-update to 2026.5.2 [3 comments, 4 participants]