Skip to content

[Bug]: 2026.5.2: Periodic Telegram getMe 10s fetch-timeout storm on networks without IPv6 egress (regression vs 2026.4.26) #76852

Closed

Description

@jplavoiemtl

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

  1. 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).
  2. Configure a Telegram bot channel and start the gateway under systemd.
  3. Wait for the gateway to reach [gateway] ready and [telegram] [default] starting provider.
  4. Watch journalctl --user -u openclaw-gateway -f.
  5. Observe [fetch-timeout] fetch timeout after 10000ms (elapsed Nms) operation=fetchWithTimeout url=https://api.telegram.org/bot.../getMe lines
    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.

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=1 because 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 error on networks without IPv6
      egress" — same network condition, different code path.

Activity

  1. clawsweeper commented on May 3, 2026

    @clawsweeper
    Contributor

    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:

    • Current probe cache stores only fetch closures: On current main, probeFetcherCache is a Map<string, typeof fetch>, resolveProbeFetcher calls resolveTelegramFetch, and the cached value is passed forward as a plain fetch function rather than a TelegramTransport. (extensions/telegram/src/probe.ts:38, a47132734ba2)
    • getMe retry path cannot promote fallback: probeTelegram resolves one fetcher, calls fetchWithTimeout for /getMe, and on retry catch only records the error and delays; there is no transport.forceFallback call in this path. (extensions/telegram/src/probe.ts:151, a47132734ba2)
    • Transport already owns the needed fallback hook: TelegramTransport exposes forceFallback and resolveTelegramTransport returns a forceFallback implementation that promotes the sticky attempt index; bot-core uses that hook for timed-out Telegram control requests. (extensions/telegram/src/fetch.ts:470, a47132734ba2)
    • Health route matches the reported cadence and probe: Gateway health caching uses HEALTH_REFRESH_INTERVAL_MS = 60000, channel status hooks call plugin.status.probeAccount, and Telegram wires probeAccount to probeTelegram with token, account, proxy, network, apiRoot, and webhook options. (src/gateway/server-constants.ts:25, a47132734ba2)
    • Timeout shape supports the reported fallback miss: fetchWithTimeout aborts with an Error named TimeoutError and passes the abort signal into the fetch function, which explains why probe-level timeout handling needs to promote the transport explicitly. (src/utils/fetch-timeout.ts:90, a47132734ba2)
    • Open closing PR owns the focused fix path: Live PR metadata shows fix(telegram): reuse sticky IPv4 dispatcher for getMe health check #76856 is open, references this issue with closing syntax, and changes only extensions/telegram/src/probe.ts plus extensions/telegram/src/probe.test.ts to cache the transport and call forceFallback on probe retry failures. (e375336d0808)

    Likely related people:

    • steipete: Commit e873c1e updated Telegram IPv4 fallback/logging and network config surfaces in fetch.ts, which is the transport hook this issue needs the probe path to retain. (role: recent Telegram transport contributor; confidence: high; commits: e873c1e1f815; files: extensions/telegram/src/fetch.ts, extensions/telegram/src/fetch.test.ts, extensions/telegram/src/network-config.ts)
    • obviyus: Commit 5b94c4c touched probeTelegram, probe tests, bot-core, channel status wiring, and polling startup close to the getMe probe path; commit 1b38f80 later touched Telegram transport cooldown behavior. (role: recent Telegram startup/probe contributor; confidence: high; commits: 5b94c4ce9396, 1b38f80088c7; files: extensions/telegram/src/probe.ts, extensions/telegram/src/probe.test.ts, extensions/telegram/src/bot-core.ts)
    • joshavant: Commit ba31afb changed health/status and fetch-timeout surfaces that invoke or report channel account probes during gateway health refresh. (role: adjacent health snapshot contributor; confidence: medium; commits: ba31afb0992a; files: src/commands/health.ts, src/gateway/server-methods/health.ts, src/gateway/server-methods/channels.ts)

    Remaining risk / open question:

    • No live broken-IPv6 Telegram host validation was run during this read-only review; confidence comes from reporter logs plus current source inspection.
    • The linked fix PR still needs after-fix real Telegram or broken-IPv6 runtime proof before merge.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against a47132734ba2.

  2. changed the title [-][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)[/+] on May 3, 2026
  3. locked as resolved and limited conversation to collaborators on May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions