openclaw - 💡(How to fix) Fix [Bug]: Agent ignores all proxy settings, cannot connect to Telegram behind DPI [1 comments, 2 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#74478Fetched 2026-04-30 06:23:41
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Author
Timeline (top)
closed ×1commented ×1labeled ×1

OpenClaw completely ignores all proxy settings (HTTP_PROXY, HTTPS_PROXY, network.proxy). Traffic to Telegram API and cloud providers fails with timeout behind DPI, despite a working Tailscale SOCKS5 proxy confirmed with curl.

Root Cause

OpenClaw completely ignores all proxy settings (HTTP_PROXY, HTTPS_PROXY, network.proxy). Traffic to Telegram API and cloud providers fails with timeout behind DPI, despite a working Tailscale SOCKS5 proxy confirmed with curl.

Fix Action

Fix / Workaround

[telegram] fetch fallback: enabling sticky IPv4-only dispatcher (codes=UND_ERR_CONNECT_TIMEOUT)
[telegram] deleteWebhook failed: Network request for 'deleteWebhook' failed!
[telegram] webhook cleanup failed: Network request for 'deleteWebhook' failed!
# Proof that proxy works:
$ docker exec -it magura-oc curl -x socks5h://172.20.0.2:1080 ifconfig.me
92.246.139.79  # VPS IP

The same Docker image works perfectly on a VPS without DPI, confirming the issue is solely the missing proxy support. Temporary workaround: none found; transparent proxying via redsocks/iptables is blocked by Docker network isolation.

Code Example

[telegram] fetch fallback: enabling sticky IPv4-only dispatcher (codes=UND_ERR_CONNECT_TIMEOUT)
[telegram] deleteWebhook failed: Network request for 'deleteWebhook' failed!
[telegram] webhook cleanup failed: Network request for 'deleteWebhook' failed!
# Proof that proxy works:
$ docker exec -it magura-oc curl -x socks5h://172.20.0.2:1080 ifconfig.me
92.246.139.79  # VPS IP
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

OpenClaw completely ignores all proxy settings (HTTP_PROXY, HTTPS_PROXY, network.proxy). Traffic to Telegram API and cloud providers fails with timeout behind DPI, despite a working Tailscale SOCKS5 proxy confirmed with curl.

Steps to reproduce

  1. Run OpenClaw 2026.4.26 in Docker on a network where direct access to api.telegram.org is blocked by DPI.
  2. Set env vars: HTTP_PROXY=http://172.20.0.2:1080, HTTPS_PROXY=http://172.20.0.2:1080, ALL_PROXY=http://172.20.0.2:1080.
  3. Start the gateway with a Telegram bot token configured.
  4. Check logs: Telegram channel reports UND_ERR_CONNECT_TIMEOUT and deleteWebhook failed.
  5. From the same container, run curl -x socks5h://172.20.0.2:1080 ifconfig.me – it returns the VPS IP, proving the proxy works.

Expected behavior

OpenClaw should route its outbound HTTP/HTTPS requests through the configured proxy, as standard Node.js applications do when HTTP_PROXY/HTTPS_PROXY are set. The Telegram channel should connect successfully.

Actual behavior

Telegram channel fails to connect. Logs show UND_ERR_CONNECT_TIMEOUT and Network request for 'deleteWebhook' failed!. The gateway never uses the proxy, even though it is reachable.

OpenClaw version

2026.4.26 (also tested on 2026.4.14-beta.1, 2026.4.14)

Operating system

Synology DSM 7.3.2 (Linux 5.10.55+), Docker

Install method

Docker (official image ghcr.io/openclaw/openclaw:latest and custom Debian-based image)

Model

Used for testing: ollama/qwen2.5-coder:7b (local), but the issue is network-level, not model-specific.

Provider / routing chain

openclaw -> (should go through proxy) -> Tailscale SOCKS5 proxy (172.20.0.2:1080) -> VPS Exit Node -> internet. In reality, openclaw attempts direct connection, bypassing proxy.

Additional provider/model setup details

Ollama base URL: http://172.20.0.4:11434 (local network, excluded from proxy via NO_PROXY). Gemini API key is set but cannot be reached due to proxy bypass.

Logs, screenshots, and evidence

[telegram] fetch fallback: enabling sticky IPv4-only dispatcher (codes=UND_ERR_CONNECT_TIMEOUT)
[telegram] deleteWebhook failed: Network request for 'deleteWebhook' failed!
[telegram] webhook cleanup failed: Network request for 'deleteWebhook' failed!
# Proof that proxy works:
$ docker exec -it magura-oc curl -x socks5h://172.20.0.2:1080 ifconfig.me
92.246.139.79  # VPS IP

Impact and severity

Affected: all Telegram users of the bot behind DPI. Severity: High (complete inability to send/receive messages). Frequency: Always when DPI is active. Consequence: Bot is unusable unless network restrictions are lifted.

Additional information

The same Docker image works perfectly on a VPS without DPI, confirming the issue is solely the missing proxy support. Temporary workaround: none found; transparent proxying via redsocks/iptables is blocked by Docker network isolation.

extent analysis

TL;DR

OpenClaw may need to explicitly configure proxy settings within its application code or environment to use the provided HTTP/HTTPS proxies.

Guidance

  • Verify that OpenClaw supports proxy settings through environment variables or configuration files, as standard Node.js applications do.
  • Check the OpenClaw documentation for any specific proxy configuration options that may need to be set, beyond the standard HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY environment variables.
  • Consider testing OpenClaw with a different proxy setup or version to isolate if the issue is specific to the current configuration or a broader problem.
  • Review the Docker networking configuration to ensure it allows the container to use the host's proxy settings or set up a proxy within the container itself.

Example

No specific code example can be provided without knowing the internal workings of OpenClaw, but typically, setting proxies in a Node.js application can be done by setting environment variables before the application starts, or programmatically within the application code using libraries like global-agent or proxy-agent.

Notes

The issue seems to be specific to how OpenClaw handles proxy settings, which might not follow the standard Node.js behavior of respecting HTTP_PROXY and HTTPS_PROXY environment variables. The fact that curl works with the proxy suggests the issue is with OpenClaw's implementation rather than the proxy itself.

Recommendation

Apply a workaround by explicitly configuring proxy settings within OpenClaw's environment or code, if possible, as the standard environment variables do not seem to be respected. This could involve setting up a custom proxy configuration within the Docker container or modifying OpenClaw's code to handle proxies correctly.

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

OpenClaw should route its outbound HTTP/HTTPS requests through the configured proxy, as standard Node.js applications do when HTTP_PROXY/HTTPS_PROXY are set. The Telegram channel should connect successfully.

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]: Agent ignores all proxy settings, cannot connect to Telegram behind DPI [1 comments, 2 participants]