hermes - ✅(Solved) Fix [Bug]: Connection reset by peer when connectin gto the api-server [1 pull requests, 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
NousResearch/hermes-agent#14585Fetched 2026-04-24 06:16:20
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1

Error Message

Running the hermes gateway in the docker with API server enabled and listening at 8642 and then expect to connect to the port from host using webui. But got connection reset error. paste.rs: <urlopen error timed out> dpaste.com: <urlopen error timed out> 2026-04-23 08:49:40,173 ERROR Lark: receive message loop exit, err: no close frame received or sent [conn_id=7631867433733049272] 2026-04-23 08:49:50,405 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): [Errno 104] Connection reset by peer 2026-04-23 08:53:33,021 WARNING [20260420_063008_a43204] root: Failed to generate context summary: Error code: 402 - {'error': {'message': 'Insufficient credits. This account never purchased credits. Make su 2026-04-23 09:03:44,641 ERROR [20260423_082015_c8d35bff] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | 2026-04-23 09:04:05,356 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p 2026-04-23 09:22:10,581 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p 2026-04-23 10:15:44,665 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631881662272785372] 2026-04-23 10:15:44,879 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 10:16:02,884 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:09:11,910 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631896435374509261] 2026-04-23 12:09:39,054 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by NameResolutionError("HTTPSConnec 2026-04-23 12:24:54,114 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631927512683023557] 2026-04-23 12:29:36,359 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:29:38,866 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631929678731005118] 2026-04-23 12:29:54,375 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:30:12,394 ERROR gateway.platforms.weixin: [Weixin] poll error (3/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:30:20,871 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by SSLError(SSLEOFError(8, '[SSL: U 2026-04-23 13:14:10,019 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631935576278617307] 2026-04-23 13:17:14,590 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | 2026-04-23 13:17:46,056 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | 2026-04-23 13:30:30,001 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946] 2026-04-23 13:30:30,005 WARNING Lark: ping failed, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]

Additional Logs / Traceback (optional)

Root Cause

--- errors.log (last 100 lines) ---
2026-04-23 08:49:40,173 ERROR Lark: receive message loop exit, err: no close frame received or sent [conn_id=7631867433733049272] 2026-04-23 08:49:50,405 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): [Errno 104] Connection reset by peer 2026-04-23 08:53:33,021 WARNING [20260420_063008_a43204] root: Failed to generate context summary: Error code: 402 - {'error': {'message': 'Insufficient credits. This account never purchased credits. Make su re your key is on the correct account or org, and if so, purchase more at https://openrouter.ai/settings/credits', 'code': 402}}. Further summary attempts paused for 600 seconds. 2026-04-23 09:03:44,641 ERROR [20260423_082015_c8d35bff] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | provider=openrouter model=openai/gpt-oss-120b:free msgs=29 tokens=~19,545 2026-04-23 09:04:05,356 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p rovider=openrouter model=openai/gpt-oss-120b:free msgs=78 tokens=~20,886 2026-04-23 09:22:10,581 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p rovider=openrouter model=openai/gpt-oss-120b:free msgs=79 tokens=~20,897 2026-04-23 10:15:44,665 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631881662272785372] 2026-04-23 10:15:44,879 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 10:16:02,884 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:09:11,910 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631896435374509261] 2026-04-23 12:09:39,054 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by NameResolutionError("HTTPSConnec tion(host='open.feishu.cn', port=443): Failed to resolve 'open.feishu.cn' ([Errno -3] Temporary failure in name resolution)")) 2026-04-23 12:24:54,114 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631927512683023557] 2026-04-23 12:29:36,359 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:29:38,866 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631929678731005118] 2026-04-23 12:29:54,375 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:30:12,394 ERROR gateway.platforms.weixin: [Weixin] poll error (3/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution] 2026-04-23 12:30:20,871 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by SSLError(SSLEOFError(8, '[SSL: U NEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1029)'))) 2026-04-23 13:14:10,019 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631935576278617307] 2026-04-23 13:17:14,590 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | provider=openrouter model=openai/gpt-oss-120b:free msgs=2 tokens=~4,384 2026-04-23 13:17:46,056 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | provider=openrouter model=openai/gpt-oss-120b:free msgs=3 tokens=~4,392 2026-04-23 13:30:30,001 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946] 2026-04-23 13:30:30,005 WARNING Lark: ping failed, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]

Fix Action

Fixed

PR fix notes

PR #14597: fix(api-server): bind container API host for published ports

Description (problem / solution / changelog)

Summary

Fixes #14585.

When Hermes runs inside Docker/Podman, the API server used to keep its normal loopback default (127.0.0.1) even when an API_SERVER_KEY was configured. That made -p 8642:8642 look broken from the host because the containerized server never bound a reachable interface.

This change:

  • keeps the normal local-only default on native hosts
  • defaults the API server to 0.0.0.0 only for container runs with an API key
  • preserves any explicit API_SERVER_HOST override
  • documents the container-specific default in the Docker and API server docs

Testing

  • python3 -m pytest -o addopts='' tests/gateway/test_api_server.py -q -k 'test_default_config or test_custom_config_from_extra or test_config_from_env or test_container_with_key_defaults_to_network_bind or test_container_without_key_keeps_loopback_default or test_env_override_port_and_host'

Notes

  • I also ran the full tests/gateway/test_api_server.py file locally, but this environment already has unrelated auth-path failures in that suite, so I kept the reported verification scoped to the adapter-init paths touched here.

Changed files

  • gateway/platforms/api_server.py (modified, +22/-2)
  • tests/gateway/test_api_server.py (modified, +12/-0)
  • website/docs/user-guide/docker.md (modified, +2/-0)
  • website/docs/user-guide/features/api-server.md (modified, +1/-1)

Code Example

Collecting debug report...                                                                                                                                                                            [352/532]Uploading...                                                                                                                                                                                                   
                                                                                                                                                                                                               
Upload failed: Failed to upload to any paste service:                                                                                                                                                          
  paste.rs: <urlopen error timed out>                                                                                                                                                                          
  dpaste.com: <urlopen error timed out>                                                                                                                                                                        
                                                                                                                                                                                                               
Full report printed below — copy-paste it manually:                                                                                                                                                            
                                                                                                                                                                                                               
--- hermes dump ---                                                                                                                                                                                            
version:          0.9.0 (2026.4.13) [(unknown)]                                                                                                                                                                
os:               Linux 5.15.0-144-generic x86_64                                                                                                                                                              
python:           3.13.5                                                                                                                                                                                       
openai_sdk:       2.31.0                                                                                                                                                                                       
profile:          default                                                                                                                                                                                      
hermes_home:      ~/.                                                                                                                                                                                          
model:            openai/gpt-oss-120b:free                                                                                                                                                                     
provider:         openrouter                                                                                                                                                                                   
terminal:         local                                                               
features:
  toolsets:           hermes-cli
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            stopped (docker)
  platforms:          dingtalk, feishu, weixin
  cron_jobs:          0
  skills:             81

config_overrides:
  display.streaming: True
--- end dump ---


--- errors.log (last 100 lines) ---                                                                                                                                                                            
2026-04-23 08:49:40,173 ERROR Lark: receive message loop exit, err: no close frame received or sent [conn_id=7631867433733049272]
2026-04-23 08:49:50,405 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): [Errno 104] Connection reset by peer
2026-04-23 08:53:33,021 WARNING [20260420_063008_a43204] root: Failed to generate context summary: Error code: 402 - {'error': {'message': 'Insufficient credits. This account never purchased credits. Make su
re your key is on the correct account or org, and if so, purchase more at https://openrouter.ai/settings/credits', 'code': 402}}. Further summary attempts paused for 600 seconds.
2026-04-23 09:03:44,641 ERROR [20260423_082015_c8d35bff] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=29 tokens=~19,545
2026-04-23 09:04:05,356 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p
rovider=openrouter model=openai/gpt-oss-120b:free msgs=78 tokens=~20,886
2026-04-23 09:22:10,581 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p
rovider=openrouter model=openai/gpt-oss-120b:free msgs=79 tokens=~20,897
2026-04-23 10:15:44,665 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631881662272785372]
2026-04-23 10:15:44,879 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 10:16:02,884 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:09:11,910 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631896435374509261]
2026-04-23 12:09:39,054 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by NameResolutionError("HTTPSConnec
tion(host='open.feishu.cn', port=443): Failed to resolve 'open.feishu.cn' ([Errno -3] Temporary failure in name resolution)"))
2026-04-23 12:24:54,114 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631927512683023557]
2026-04-23 12:29:36,359 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:29:38,866 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631929678731005118]
2026-04-23 12:29:54,375 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:30:12,394 ERROR gateway.platforms.weixin: [Weixin] poll error (3/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:30:20,871 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by SSLError(SSLEOFError(8, '[SSL: U
NEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1029)')))
2026-04-23 13:14:10,019 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631935576278617307]
2026-04-23 13:17:14,590 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=2 tokens=~4,384
2026-04-23 13:17:46,056 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=3 tokens=~4,392
2026-04-23 13:30:30,001 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]
2026-04-23 13:30:30,005 WARNING Lark: ping failed, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]

--- gateway.log (last 100 lines) ---
(file not found)

---

2026-04-23 14:10:13,956 INFO gateway.run: Starting Hermes Gateway...
2026-04-23 14:10:13,957 INFO gateway.run: Session storage: /opt/data/sessions
2026-04-23 14:10:13,959 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-04-23 14:10:13,991 INFO gateway.run: Connecting to api_server...
2026-04-23 14:10:13,993 INFO gateway.platforms.api_server: [Api_Server] API server listening on http://127.0.0.1:8642 (model: hermes-agent)
2026-04-23 14:10:13,993 INFO gateway.run: ✓ api_server connected
2026-04-23 14:10:16,266 INFO gateway.run: Connecting to feishu...
2026-04-23 14:10:17,605 INFO gateway.platforms.feishu: [Feishu] Connected in websocket mode (feishu)
2026-04-23 14:10:17,613 INFO gateway.run: ✓ feishu connected
2026-04-23 14:10:17,688 INFO gateway.run: Connecting to weixin...
2026-04-23 14:10:17,690 INFO gateway.platforms.weixin: weixin: restored 1 context token(s) for c40e79dc
2026-04-23 14:10:17,691 INFO gateway.platforms.weixin: [Weixin] Connected account=c40e79dc base=https://ilinkai.weixin.qq.com
2026-04-23 14:10:17,691 INFO gateway.run: ✓ weixin connected
2026-04-23 14:10:17,692 INFO gateway.run: 1 hook(s) loaded
2026-04-23 14:10:17,692 INFO gateway.run: Gateway running with 3 platform(s)
2026-04-23 14:10:17,701 INFO gateway.run: Channel directory built: 2 target(s)
2026-04-23 14:10:17,701 INFO gateway.run: Press Ctrl+C to stop
2026-04-23 14:10:17,702 INFO gateway.run: Cron ticker started (interval=60s)
2026-04-23 14:10:18,349 INFO Lark: connected to wss://msg-frontier.feishu.cn/ws/v2?fpid=493&aid=552564&device_id=7631956773570137269&access_key=5e5a43964abba104974fe587fe15557d&service_id=33554678&ticket=c426a81d-e8d8-4fbc-bfe9-56a7fd737754 [conn_id=7631956773570137269]
RAW_BUFFERClick to expand / collapse

Bug Description

Running the hermes gateway in the docker with API server enabled and listening at 8642 and then expect to connect to the port from host using webui. But got connection reset error.

Steps to Reproduce

  1. Append
    API_SERVER_ENABLED=true API_SERVER_KEY=OPEN_WEBUI_KEY ~/.hermes/.env

2 Run:
docker run -d --network hermes-net \ --name hermes-gateway -p 8642:8642 \ -v ~/.hermes:/opt/data \ nousresearch/hermes-agent gateway run 3. Run `

curl http://127.0.0.1:8642/health curl: (56) Recv failure: Connection reset by peer `

Expected Behavior

It should be 200 OK message.

Actual Behavior

curl: (56) Recv failure: Connection reset by peer

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

No response

Debug Report

Collecting debug report...                                                                                                                                                                            [352/532]Uploading...                                                                                                                                                                                                   
                                                                                                                                                                                                               
Upload failed: Failed to upload to any paste service:                                                                                                                                                          
  paste.rs: <urlopen error timed out>                                                                                                                                                                          
  dpaste.com: <urlopen error timed out>                                                                                                                                                                        
                                                                                                                                                                                                               
Full report printed below — copy-paste it manually:                                                                                                                                                            
                                                                                                                                                                                                               
--- hermes dump ---                                                                                                                                                                                            
version:          0.9.0 (2026.4.13) [(unknown)]                                                                                                                                                                
os:               Linux 5.15.0-144-generic x86_64                                                                                                                                                              
python:           3.13.5                                                                                                                                                                                       
openai_sdk:       2.31.0                                                                                                                                                                                       
profile:          default                                                                                                                                                                                      
hermes_home:      ~/.                                                                                                                                                                                          
model:            openai/gpt-oss-120b:free                                                                                                                                                                     
provider:         openrouter                                                                                                                                                                                   
terminal:         local                                                               
features:
  toolsets:           hermes-cli
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            stopped (docker)
  platforms:          dingtalk, feishu, weixin
  cron_jobs:          0
  skills:             81

config_overrides:
  display.streaming: True
--- end dump ---


--- errors.log (last 100 lines) ---                                                                                                                                                                            
2026-04-23 08:49:40,173 ERROR Lark: receive message loop exit, err: no close frame received or sent [conn_id=7631867433733049272]
2026-04-23 08:49:50,405 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): [Errno 104] Connection reset by peer
2026-04-23 08:53:33,021 WARNING [20260420_063008_a43204] root: Failed to generate context summary: Error code: 402 - {'error': {'message': 'Insufficient credits. This account never purchased credits. Make su
re your key is on the correct account or org, and if so, purchase more at https://openrouter.ai/settings/credits', 'code': 402}}. Further summary attempts paused for 600 seconds.
2026-04-23 09:03:44,641 ERROR [20260423_082015_c8d35bff] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=29 tokens=~19,545
2026-04-23 09:04:05,356 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p
rovider=openrouter model=openai/gpt-oss-120b:free msgs=78 tokens=~20,886
2026-04-23 09:22:10,581 ERROR [20260423_085333_deaf1a] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day | p
rovider=openrouter model=openai/gpt-oss-120b:free msgs=79 tokens=~20,897
2026-04-23 10:15:44,665 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631881662272785372]
2026-04-23 10:15:44,879 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 10:16:02,884 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:09:11,910 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631896435374509261]
2026-04-23 12:09:39,054 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by NameResolutionError("HTTPSConnec
tion(host='open.feishu.cn', port=443): Failed to resolve 'open.feishu.cn' ([Errno -3] Temporary failure in name resolution)"))
2026-04-23 12:24:54,114 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631927512683023557]
2026-04-23 12:29:36,359 ERROR gateway.platforms.weixin: [Weixin] poll error (1/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:29:38,866 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631929678731005118]
2026-04-23 12:29:54,375 ERROR gateway.platforms.weixin: [Weixin] poll error (2/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:30:12,394 ERROR gateway.platforms.weixin: [Weixin] poll error (3/3): Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
2026-04-23 12:30:20,871 ERROR Lark: connect failed, err: HTTPSConnectionPool(host='open.feishu.cn', port=443): Max retries exceeded with url: /callback/ws/endpoint (Caused by SSLError(SSLEOFError(8, '[SSL: U
NEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1029)')))
2026-04-23 13:14:10,019 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631935576278617307]
2026-04-23 13:17:14,590 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=2 tokens=~4,384
2026-04-23 13:17:46,056 ERROR [20260423_131614_f8b1a9cd] root: API call failed after 3 retries. HTTP 429: Rate limit exceeded: free-models-per-day. Add 10 credits to unlock 1000 free model requests per day |
 provider=openrouter model=openai/gpt-oss-120b:free msgs=3 tokens=~4,392
2026-04-23 13:30:30,001 ERROR Lark: receive message loop exit, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]
2026-04-23 13:30:30,005 WARNING Lark: ping failed, err: sent 1011 (internal error) keepalive ping timeout; no close frame received [conn_id=7631942364319861946]

--- gateway.log (last 100 lines) ---
(file not found)

Operating System

Ubuntu 2204

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

2026-04-23 14:10:13,956 INFO gateway.run: Starting Hermes Gateway...
2026-04-23 14:10:13,957 INFO gateway.run: Session storage: /opt/data/sessions
2026-04-23 14:10:13,959 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-04-23 14:10:13,991 INFO gateway.run: Connecting to api_server...
2026-04-23 14:10:13,993 INFO gateway.platforms.api_server: [Api_Server] API server listening on http://127.0.0.1:8642 (model: hermes-agent)
2026-04-23 14:10:13,993 INFO gateway.run: ✓ api_server connected
2026-04-23 14:10:16,266 INFO gateway.run: Connecting to feishu...
2026-04-23 14:10:17,605 INFO gateway.platforms.feishu: [Feishu] Connected in websocket mode (feishu)
2026-04-23 14:10:17,613 INFO gateway.run: ✓ feishu connected
2026-04-23 14:10:17,688 INFO gateway.run: Connecting to weixin...
2026-04-23 14:10:17,690 INFO gateway.platforms.weixin: weixin: restored 1 context token(s) for c40e79dc
2026-04-23 14:10:17,691 INFO gateway.platforms.weixin: [Weixin] Connected account=c40e79dc base=https://ilinkai.weixin.qq.com
2026-04-23 14:10:17,691 INFO gateway.run: ✓ weixin connected
2026-04-23 14:10:17,692 INFO gateway.run: 1 hook(s) loaded
2026-04-23 14:10:17,692 INFO gateway.run: Gateway running with 3 platform(s)
2026-04-23 14:10:17,701 INFO gateway.run: Channel directory built: 2 target(s)
2026-04-23 14:10:17,701 INFO gateway.run: Press Ctrl+C to stop
2026-04-23 14:10:17,702 INFO gateway.run: Cron ticker started (interval=60s)
2026-04-23 14:10:18,349 INFO Lark: connected to wss://msg-frontier.feishu.cn/ws/v2?fpid=493&aid=552564&device_id=7631956773570137269&access_key=5e5a43964abba104974fe587fe15557d&service_id=33554678&ticket=c426a81d-e8d8-4fbc-bfe9-56a7fd737754 [conn_id=7631956773570137269]

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The connection reset error when trying to connect to the Hermes gateway API server may be due to a networking or configuration issue, and checking the Docker container's network settings and the API server's configuration is necessary.

Guidance

  • Verify that the Docker container is properly configured to expose port 8642 and that the API server is listening on the correct IP address and port.
  • Check the Docker container's network settings to ensure that it is connected to the correct network and that the host machine can reach the container.
  • Review the API server's configuration to ensure that it is set up to accept connections from the host machine.
  • Check the system's firewall and networking settings to ensure that incoming connections to port 8642 are allowed.

Example

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

Notes

The provided logs indicate that the API server is listening on http://127.0.0.1:8642, which may not be accessible from outside the Docker container. The docker run command maps port 8642 on the host machine to port 8642 in the container, but the API server may need to be configured to listen on 0.0.0.0 instead of 127.0.0.1 to accept connections from outside the container.

Recommendation

Apply a workaround by configuring the API server to listen on 0.0.0.0 instead of 127.0.0.1, or by using a different networking configuration for the Docker container.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING