Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
On hosts where DNS returns AAAA records but the network has no working IPv6 egress, OpenClaw 2026.5.2 emits a continuous storm of [fetch-timeout] log
lines for periodic https://api.telegram.org/bot.../getMe calls every ~60 seconds; the same hardware, network, and configuration runs cleanly on
2026.4.26.
Steps to reproduce
- Install OpenClaw 2026.5.2 on a Linux host with working IPv4 internet egress but no working outbound IPv6 (DNS returns AAAA records, but
curl -6 https://api.telegram.org/fails to connect). - Configure a Telegram bot channel and start the gateway under systemd.
- Wait for the gateway to reach
[gateway] readyand[telegram] [default] starting provider. - Watch
journalctl --user -u openclaw-gateway -f. - Observe
[fetch-timeout] fetch timeout after 10000ms (elapsed Nms) operation=fetchWithTimeout url=https://api.telegram.org/bot.../getMelines
firing approximately every 60 seconds, indefinitely.
Expected behavior
Periodic Telegram health checks complete over IPv4 without surfacing fetch-timeout errors, as observed on the same hardware and network running
OpenClaw 2026.4.26 — which logs a single one-time [telegram] fetch fallback: enabling sticky IPv4-only dispatcher on startup and then operates
cleanly with no recurring fetch-timeouts.
Actual behavior
Every ~60 seconds the gateway logs a [fetch-timeout] line for https://api.telegram.org/bot.../getMe. The reported elapsed value commonly
exceeds the configured 10000 ms timeout (e.g., fetch timeout after 10000ms (elapsed 12732ms), (elapsed 25723ms)), indicating the abort itself is
being delayed and consuming additional event-loop time. The storm continues regardless of agent activity. Adding /etc/hosts pin 149.154.167.220 api.telegram.org did not eliminate the storm.
OpenClaw version
2026.5.2 (8b2a6e5)
Operating system
PRETTY_NAME="Debian GNU/Linux 13 (trixie)" NAME="Debian GNU/Linux" VERSION_ID="13" VERSION="13 (trixie)" VERSION_CODENAME=trixie DEBIAN_VERSION_FULL=13.4 ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Install method
npm install -g openclaw@2026.5.2 (~/.npm-global), running under systemd --user service openclaw-gateway.service.
Model
openai-codex/gpt-5.5 (the storm fires regardless of agent activity; model not implicated)
Provider / routing chain
Telegram Bot API direct via residential ISP. No HTTP proxies, no routing intermediaries. IPv4 egress works; IPv6 egress is unavailable on this network.
Additional provider/model setup details
No response
Logs, screenshots, and evidence
systemd user-service drop-ins (~/.config/systemd/user/openclaw-gateway.service.d/) active during reproduction:
- prefer-ipv4.conf → Environment=NODE_OPTIONS=--dns-result-order=ipv4first
- disable-bonjour.conf → Environment=OPENCLAW_DISABLE_BONJOUR=1
- optimizations.conf → Environment=NODE_COMPILE_CACHE=/var/tmp/openclaw-compile-cache + OPENCLAW_NO_RESPAWN=1
/etc/hosts pin tested as an attempted workaround:
- 149.154.167.220 api.telegram.org
The storm continued after the pin and a clean gateway restart.Impact and severity
May 03 16:39:19 [fetch-timeout] fetch timeout after 10000ms (elapsed 12732ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:40:25 [fetch-timeout] fetch timeout after 10000ms (elapsed 12462ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:41:34 [fetch-timeout] fetch timeout after 10000ms (elapsed 14553ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:42:36 [fetch-timeout] fetch timeout after 10000ms (elapsed 10149ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:43:47 [fetch-timeout] fetch timeout after 10000ms (elapsed 21823ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:44:54 [fetch-timeout] fetch timeout after 10000ms (elapsed 25723ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
May 03 16:45:41 [fetch-timeout] fetch timeout after 9999ms (elapsed 12197ms) operation=fetchWithTimeout
url=https://api.telegram.org/bot{REDACTED}/getMe
... continues at ~60-second cadence indefinitely ...
Direct connectivity probes from the gateway host (same shell, same time window):
$ curl -4 -sS -o /dev/null -w 'code=%{http_code} time=%{time_total}s remote=%{remote_ip}\n' https://api.telegram.org/
code=302 time=0.307714s remote=149.154.167.220
$ curl -6 -sS -o /dev/null -w 'code=%{http_code} time=%{time_total}s\n' https://api.telegram.org/
curl: (7) Failed to connect to api.telegram.org port 443 after 7 ms
- Affected users/systems/channels: Linux installations on residential IPv4-only networks (kernel has IPv6 enabled and DNS returns AAAA records, but
no IPv6 egress is routable). Specifically affects the Telegram channel.- Severity: Blocks workflow. The constant fetch-timeout storm consumes event-loop time; observed cascading effect: agent runs and slash commands
(/status,/model) become unresponsive even though they do not call an LLM. - Frequency: Always — fires every ~60 seconds while the gateway is running on an affected network.
- Consequence: User-visible Telegram replies degrade from "seconds" on 2026.4.26 to "many minutes or no reply" on 2026.5.2.
- Severity: Blocks workflow. The constant fetch-timeout storm consumes event-loop time; observed cascading effect: agent runs and slash commands
Additional information
- Last known good version on this host/network: 2026.4.26 (be8c246).
- First known bad version: 2026.5.2 (8b2a6e5).
- Confirmed regression: rolling back to 2026.4.26 (with the same drop-ins, same /etc/hosts pin, same Telegram bot config) eliminates the storm.
- Note: rollback also required
OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS=1because 2026.5.2 had updated the openclaw.json version stamp and
2026.4.26 refused to start otherwise. - Companion issue (filed separately): "openai-codex agent runs fail with
LLM request failed: network connection erroron networks without IPv6
egress" — same network condition, different code path.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 3, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: current main still sends Telegram health getMe probes through a cached fetch closure that cannot call the Telegram transport fallback hook, and the focused closing PR remains open and unmerged.
Reproducibility: yes. The reporter provides concrete broken-IPv6 logs, and current main still routes the periodic Telegram getMe health probe through a cached fetch closure that cannot promote the Telegram transport fallback.
Next step
Do not queue a competing repair job because the open closing PR already owns the focused fix path.
Review details
Best possible solution:
Review and land #76856, or an equivalent Telegram-owned probe transport fix, then close this issue after merge and release verification.
Do we have a high-confidence way to reproduce the issue?
Yes. The reporter provides concrete broken-IPv6 logs, and current main still routes the periodic Telegram getMe health probe through a cached fetch closure that cannot promote the Telegram transport fallback.
Is this the best way to solve the issue?
Yes. The narrow maintainable fix is to keep fallback state in TelegramTransport and let probe retries promote the same cached transport; this issue should remain open until the linked implementation lands or is superseded.
What I checked:
extensions/telegram/src/probe.ts:38, a47132734ba2)extensions/telegram/src/probe.ts:151, a47132734ba2)extensions/telegram/src/fetch.ts:470, a47132734ba2)src/gateway/server-constants.ts:25, a47132734ba2)src/utils/fetch-timeout.ts:90, a47132734ba2)Likely related people:
extensions/telegram/src/fetch.ts,extensions/telegram/src/fetch.test.ts,extensions/telegram/src/network-config.ts)extensions/telegram/src/probe.ts,extensions/telegram/src/probe.test.ts,extensions/telegram/src/bot-core.ts)src/commands/health.ts,src/gateway/server-methods/health.ts,src/gateway/server-methods/channels.ts)Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against a47132734ba2.
[-][Bug]: Telegram getMe fetch-timeout storm[/-][+][Bug]: 2026.5.2: Periodic Telegram getMe 10s fetch-timeout storm on networks without IPv6 egress (regression vs 2026.4.26)[/+]fix(telegram): reuse sticky IPv4 dispatcher for getMe health check (o…
fix(telegram): reuse sticky IPv4 dispatcher for getMe health check (#…
fix(telegram): reuse sticky IPv4 dispatcher for getMe health check (o…
fix(telegram): reuse sticky IPv4 dispatcher for getMe health check (o…
fix(telegram): reuse sticky IPv4 dispatcher for getMe health check (o…