openclaw - 💡(How to fix) Fix [Bug]: Slack WebClient path intermittently fails with `EAI_AGAIN slack.com` even when host DNS and Node HTTPS are healthy [1 comments, 1 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#68789Fetched 2026-04-19 15:07:28
View on GitHub
Comments
1
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
commented ×1

On OpenClaw 2026.4.14, Slack delivery can fail intermittently with:

Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com

In this case the gateway does not crash-loop. The process stays up, but Slack sends fail and Socket Mode also shows repeated pong timeouts / stale-socket restarts.

The key detail is that host-level DNS and host-level Node networking appear healthy on the same machine:

  • getent ahosts slack.com succeeds
  • host Python socket.getaddrinfo('slack.com', 443) succeeds repeatedly
  • host Node dns.lookup('slack.com') succeeds repeatedly
  • host Node https.get('https://slack.com') succeeds repeatedly

So the failure seems specific to the OpenClaw gateway Slack/WebClient path rather than the machine's general DNS stack.

Related but not identical: #24581

Error Message

Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com

Root Cause

This looks like a bug or edge case specific to the OpenClaw Slack transport path, or an interaction between the long-running gateway process and the Slack SDK / resolver path, because:

Code Example

Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com

---

[WARN]  web-api:WebClient:0 http request failed getaddrinfo EAI_AGAIN slack.com
Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com
[WARN]  socket-mode:SlackWebSocket:1 A pong wasn't received from the server before the timeout of 5000ms!
[health-monitor] [slack:default] health-monitor: restarting (reason: stale-socket)
RAW_BUFFERClick to expand / collapse

Summary

On OpenClaw 2026.4.14, Slack delivery can fail intermittently with:

Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com

In this case the gateway does not crash-loop. The process stays up, but Slack sends fail and Socket Mode also shows repeated pong timeouts / stale-socket restarts.

The key detail is that host-level DNS and host-level Node networking appear healthy on the same machine:

  • getent ahosts slack.com succeeds
  • host Python socket.getaddrinfo('slack.com', 443) succeeds repeatedly
  • host Node dns.lookup('slack.com') succeeds repeatedly
  • host Node https.get('https://slack.com') succeeds repeatedly

So the failure seems specific to the OpenClaw gateway Slack/WebClient path rather than the machine's general DNS stack.

Related but not identical: #24581

Actual behavior

  • Slack direct sends fail intermittently with getaddrinfo EAI_AGAIN slack.com
  • Slack Socket Mode logs repeated pong timeouts and stale-socket restarts
  • Gateway remains running
  • Previously queued Slack delivery retries can accumulate and hit message_limit_exceeded

Observed logs included:

[WARN]  web-api:WebClient:0 http request failed getaddrinfo EAI_AGAIN slack.com
Error: A request error occurred: getaddrinfo EAI_AGAIN slack.com
[WARN]  socket-mode:SlackWebSocket:1 A pong wasn't received from the server before the timeout of 5000ms!
[health-monitor] [slack:default] health-monitor: restarting (reason: stale-socket)

Expected behavior

If host DNS / host Node networking are healthy, Slack sends should not fail with intermittent EAI_AGAIN from inside the gateway path.

At minimum, if this is an intermittent resolver/library issue inside the Slack transport path, the gateway should either:

  • recover cleanly without repeated delivery failures, or
  • surface more precise diagnostics about which path is actually failing (Slack WebClient, socket-mode reconnect, custom fetch/transport, etc.)

Environment

  • OpenClaw: 2026.4.14 (323493f)
  • Latest stable currently visible on npm at report time: 2026.4.15
  • Node: v22.22.2
  • OS: Debian / Raspberry Pi host
  • Gateway managed by systemd
  • Slack Socket Mode enabled

Gateway service environment is minimal and clean:

  • no HTTP_PROXY
  • no HTTPS_PROXY
  • no NO_PROXY
  • no NODE_OPTIONS

What was ruled out locally

  1. Slack cron noise / stale delivery queue
  • We silenced active noisy Slack cron announcements (delivery.mode: none) to stop creating new pressure.
  • We quarantined 11 stale pending Slack delivery entries from ~/.openclaw/delivery-queue so recovery no longer replayed them.
  • This removed the recovery storm, but fresh sends still hit EAI_AGAIN.
  1. Broken Slack target config
  • One unrelated cron job was missing delivery.to; fixing it did not resolve the gateway/WebClient issue.
  1. Host DNS / host networking
  • resolvectl status looked normal
  • /etc/resolv.conf looked normal
  • getent ahosts slack.com succeeded
  • host Python DNS lookup succeeded repeatedly
  • host Node DNS lookup succeeded repeatedly
  • host Node HTTPS requests to https://slack.com succeeded repeatedly
  1. Gateway runtime environment
  • systemd unit and wrapper script were checked
  • no resolver/proxy-related env vars were present in the live process
  • tried forcing Node --dns-result-order=ipv4first; this did not change the failure mode, so that was reverted

Narrowed suspicion

This looks like a bug or edge case specific to the OpenClaw Slack transport path, or an interaction between the long-running gateway process and the Slack SDK / resolver path, because:

  • host-level Node lookups and HTTPS are healthy
  • the gateway Slack/WebClient path still reports EAI_AGAIN
  • Socket Mode also appears unstable on the same gateway process

Repro notes

This has been observed on a live gateway with Slack configured, but a deterministic repro is not yet isolated.

A possible repro strategy might be:

  1. Run gateway with Slack Socket Mode enabled
  2. Allow stale Slack delivery retries or repeated Slack sends to build pressure
  3. Observe Socket Mode pong timeouts / stale-socket restarts
  4. Attempt a fresh direct Slack send through OpenClaw
  5. Observe intermittent EAI_AGAIN slack.com from the WebClient path even though host DNS checks still pass

Useful implementation clue

The installed OpenClaw build appears to use a standard Slack WebClient path in the Slack client module, while host-level Node dns.lookup() / https.get() both succeed repeatedly. That mismatch may help narrow where the resolver / transport behavior diverges.

If useful, I can also provide the exact queue entry shape and more sanitized gateway logs from the affected system.

extent analysis

TL;DR

The most likely fix or workaround for the intermittent EAI_AGAIN error in the OpenClaw Slack transport path is to upgrade to a newer version of OpenClaw, such as 2026.4.15, which may include fixes for the underlying issue.

Guidance

  • Verify that the issue is specific to the OpenClaw Slack transport path by checking the gateway logs and confirming that host-level DNS and Node networking are healthy.
  • Attempt to reproduce the issue using the suggested repro strategy to gather more information about the failure mode.
  • Consider enabling additional logging or debugging in the OpenClaw Slack client module to gain more insight into the resolver and transport behavior.
  • If upgrading to a newer version of OpenClaw is not possible, try to mitigate the issue by reducing the pressure on the Slack delivery queue, such as by silencing noisy cron announcements or quarantining stale pending delivery entries.

Example

No code snippet is provided as the issue is related to a specific library and version, and the exact implementation details are not available.

Notes

The issue may be specific to the interaction between the OpenClaw gateway and the Slack SDK, and may require further investigation to determine the root cause. The suggested repro strategy may help to gather more information about the failure mode.

Recommendation

Upgrade to a newer version of OpenClaw, such as 2026.4.15, which may include fixes for the underlying issue. This is recommended because the issue appears to be specific to the OpenClaw Slack transport path, and a newer version may include improvements or fixes for this issue.

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

If host DNS / host Node networking are healthy, Slack sends should not fail with intermittent EAI_AGAIN from inside the gateway path.

At minimum, if this is an intermittent resolver/library issue inside the Slack transport path, the gateway should either:

  • recover cleanly without repeated delivery failures, or
  • surface more precise diagnostics about which path is actually failing (Slack WebClient, socket-mode reconnect, custom fetch/transport, etc.)

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]: Slack WebClient path intermittently fails with `EAI_AGAIN slack.com` even when host DNS and Node HTTPS are healthy [1 comments, 1 participants]