hermes - 💡(How to fix) Fix OpenAI Codex provider crashes with "'NoneType' object is not iterable" (HTTP None)

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…
  • Auth via OpenAI subscription OAuth (chatgpt.com/backend-api/codex) — no API key
  • Error appears to come from the response parsing path ('NoneType' object is not iterable suggests a for x in None or similar in the stream/response handler)
  • Probable location: agent/transports/codex.py or agent/codex_responses_adapter.py
  • The same setup was working previously; regression appeared recently

Error Message

Gateway crashes immediately with:

Root Cause

  • Auth via OpenAI subscription OAuth (chatgpt.com/backend-api/codex) — no API key
  • Error appears to come from the response parsing path ('NoneType' object is not iterable suggests a for x in None or similar in the stream/response handler)
  • Probable location: agent/transports/codex.py or agent/codex_responses_adapter.py
  • The same setup was working previously; regression appeared recently
RAW_BUFFERClick to expand / collapse

Bug report

Hermes version: 0.14.0 Provider: OpenAI Codex (openai-codex) Model: gpt-5.5

Steps to reproduce

  1. /model gpt-5.5 (switch to OpenAI Codex provider)
  2. Send any message

Observed behavior

Gateway crashes immediately with:

⚠️ Non-retryable error (HTTP None) — trying fallback... ❌ Non-retryable error (HTTP None): 'NoneType' object is not iterable ⚠️ 'NoneType' object is not iterable

The model switch card shows correctly (272k context, $5/$30), then the first user message triggers the crash. Fallback kicks in but the Codex provider itself is unusable.

Expected behavior

Message is processed normally by gpt-5.5 via the Codex backend.

Context

  • Auth via OpenAI subscription OAuth (chatgpt.com/backend-api/codex) — no API key
  • Error appears to come from the response parsing path ('NoneType' object is not iterable suggests a for x in None or similar in the stream/response handler)
  • Probable location: agent/transports/codex.py or agent/codex_responses_adapter.py
  • The same setup was working previously; regression appeared recently

Environment

  • VPS Infomaniak
  • Linux (6.8.0-110-generic)
  • Python 3.13
  • Hermes 0.14.0

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

Message is processed normally by gpt-5.5 via the Codex backend.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING