Skip to content

stream error: unexpected status 400 Bad Request: #3491

Closed

Description

@stretchcloud

What version of Codex is running?

codex-cli 0.34.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

Upgrade the CLI to the latest one.
Set the ~/.codex/config.toml to authenticate using Azure OpenAI instance
Run codex

What is the expected behavior?

No response

What do you see instead?

Image

Additional information

No response

Activity

  1. added
    bug
    on Sep 11, 2025
  2. nikhil-pandey commented on Sep 11, 2025

    @nikhil-pandey

    +1 Hitting this issue after updating to the latest version

  3. stretchcloud commented on Sep 11, 2025

    @stretchcloud
    Author

    Seems like a knows issue. #3451

    Downgrade the CLI to 0.31.0. Worked for me.

  4. bro4all commented on Sep 11, 2025

    @bro4all

    can any one post their config.toml for the azure end point? somehow .31 is not working for me either and .29 was working and now it is not

  5. DevOps-zhuang commented on Sep 12, 2025

    @DevOps-zhuang

    I met similar issue, it is ' stream error: unexpected status 400 Bad Request: {"error":{"code":"BadRequest","message":"API version not supported"}};', I even downgrade to 0.31.0, it still doesn't work for me ;(

  6. Dion-van-Huyssteen commented on Sep 12, 2025

    @Dion-van-Huyssteen

    Getting this issue using our LiteLLM endpoint (which is going to azure for gpt-5 calls). Roll back to 0.31.0 does work for me.

  7. etraut-openai commented on Nov 9, 2025

    @etraut-openai
    Contributor

    I think this has been fixed. If you're seeing a similar error with the most recent version of codex, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions