Skip to content

[Bug]: Error: 'NoneType' object is not iterable #32892

@stawiski

Description

@stawiski

Bug Description

Hermes stopped working with ChatGPT integration, replying only:

Error: 'NoneType' object is not iterable

Full dump:

⚠️  API call failed (attempt 1/3): TypeError
   🔌 Provider: openai-codex  Model: gpt-5.5
   🌐 Endpoint: https://chatgpt.com/backend-api/codex
   📝 Error: 'NoneType' object is not iterable
⚠️ Non-retryable error (HTTP None) — trying fallback...
❌ Non-retryable error (HTTP None): 'NoneType' object is not iterable
❌ Non-retryable client error (HTTP None). Aborting.
   🔌 Provider: openai-codex  Model: gpt-5.5
   🌐 Endpoint: https://chatgpt.com/backend-api/codex
   💡 This type of error won't be fixed by retrying.
    Hey! What can I help you with?

Steps to Reproduce

  1. Run hermes with Provider: openai-codex Model: gpt-5.5
  2. Try any message in chat via Telegram, cli etc.

Expected Behavior

Hermes endpoint provider (https://chatgpt.com/backend-api/codex) should handle all code branches and never error on python error (NoneType).

Actual Behavior

As above, errors out

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

No response

Debug Report

⚠️  API call failed (attempt 1/3): TypeError
   🔌 Provider: openai-codex  Model: gpt-5.5
   🌐 Endpoint: https://chatgpt.com/backend-api/codex
   📝 Error: 'NoneType' object is not iterable
⚠️ Non-retryable error (HTTP None) — trying fallback...
❌ Non-retryable error (HTTP None): 'NoneType' object is not iterable
❌ Non-retryable client error (HTTP None). Aborting.
   🔌 Provider: openai-codex  Model: gpt-5.5
   🌐 Endpoint: https://chatgpt.com/backend-api/codex
   💡 This type of error won't be fixed by retrying.
    Hey! What can I help you with?

Operating System

Ubuntu 24.04

Python Version

3.13.5

Hermes Version

v0.14.0

Additional Logs / Traceback (optional)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecodexcomp/agentCore agent loop, run_agent.py, prompt builderprovider/openaiOpenAI / Codex Responses APItype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions