You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be possibly multiple things going on. As far as I can tell, this is what was happening on my setup:
Hermes was actively working on a task when I manually stopped the gateway — I did this intentionally to switch models.
I switched to hunter-alpha on OpenRouter.
I restarted the gateway using hermes gateway run --replace.
The gateway appeared to automatically resume the previous task rather than starting fresh.
In the CLI, while the task progress was updating/reflecting, the display spammed between two different task name labels repeatedly (flickering between two states rather than updating smoothly).
Shortly after, the CLI began throwing the following error in a loop and would not recover:
text
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 126.20s (fast response often indicates rate limiting)
⏳ Retrying in 5s (extended backoff for possible rate limit)... ⚠️ Invalid API response (attempt 1/3): response.choices is None
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 126.00s (fast response often indicates rate limiting)
⏳ Retrying in 5s (extended backoff for possible rate limit)... ⚠️ Invalid API response (attempt 2/3): response.choices is None
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 257.37s (fast response often indicates rate limiting)
⏳ Retrying in 10s (extended backoff for possible rate limit)...
┊ 📚 skill duckduckgo-search 1.2s
✹ ಠ_ಠ ruminating... (42.9s) ⚠️ Invalid API response (attempt 2/3): response.choices is None
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 257.03s (fast response often indicates rate limiting)
⏳ Retrying in 10s (extended backoff for possible rate limit)...
Steps to Reproduce
have hermes running on a task
stop gateway during the ongoing tasks hermes was working on
run hermes update
run hermes gateway run --replace
hermes will auto continue working on its tasks
Bug Description
There seems to be possibly multiple things going on. As far as I can tell, this is what was happening on my setup:
Hermes was actively working on a task when I manually stopped the gateway — I did this intentionally to switch models.
I switched to hunter-alpha on OpenRouter.
I restarted the gateway using hermes gateway run --replace.
The gateway appeared to automatically resume the previous task rather than starting fresh.
In the CLI, while the task progress was updating/reflecting, the display spammed between two different task name labels repeatedly (flickering between two states rather than updating smoothly).
Shortly after, the CLI began throwing the following error in a loop and would not recover:
text
⚠️ Invalid API response (attempt 1/3): response.choices is None
⚠️ Invalid API response (attempt 2/3): response.choices is None
⚠️ Invalid API response (attempt 2/3): response.choices is None
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 126.20s (fast response often indicates rate limiting)
⏳ Retrying in 5s (extended backoff for possible rate limit)...
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 126.00s (fast response often indicates rate limiting)
⏳ Retrying in 5s (extended backoff for possible rate limit)...
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 257.37s (fast response often indicates rate limiting)
⏳ Retrying in 10s (extended backoff for possible rate limit)...
┊ 📚 skill duckduckgo-search 1.2s
✹ ಠ_ಠ ruminating... (42.9s)
🏢 Provider: Unknown
📝 Provider message: {'message': 'Provider returned error', 'code': 502}
⏱️ Response time: 257.03s (fast response often indicates rate limiting)
⏳ Retrying in 10s (extended backoff for possible rate limit)...
Steps to Reproduce
have hermes running on a task
stop gateway during the ongoing tasks hermes was working on
run hermes update
run hermes gateway run --replace
hermes will auto continue working on its tasks
Expected Behavior
no cli text spam and no errors from openrouter
Actual Behavior
Recording.2026-03-15.154640.mp4
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp), CLI (interactive chat)
Messaging Platform (if gateway-related)
Telegram
Operating System
Windows wsl
Python Version
Python 3.10.12
Hermes Version
Hermes Agent v0.2.0 (2026.3.12) Project: /home/stefanu/.hermes/hermes-agent Python: 3.11.14 OpenAI SDK: 2.26.0 Up to date
Relevant Logs / Traceback
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?