• null

    今天手动更新了一下codex的最新版本,想接着工作的时候突然显示401

    unexpected status 401 Unauthorized: Invalid token (request id: xxx), url: https://xxx/v1/responses

    一开始以为是中转站的问题,换了密钥依然如此,然后我调整了nginx日志发现codex请求没有带上token去请求导致401

    去github看有人反馈过了类似的问题,我现在不知道怎么降级codex,天才程序员陨落了

    github.com/openai/codex

    [Ubuntu 26.04] Codex CLI 0.149.0 unexpected status 401 Unauthorized: missing api key

    已打开 12:07AM - 21 Aug 26 UTC

    图片

    rrmmxxuu

    bug

    auth

    CLI

    What version of Codex CLI is running?

    0.149.0

    What subscription do you… have?

    API key

    Which model were you using?

    _No response_

    What platform is your computer?

    Linux 7.0.0-30-generic x86_64 unknown

    What terminal emulator and version are you using (if applicable)?

    _No response_

    Codex doctor report```json

    ```### What issue are you seeing?

    After updating to 0.149.0, did not change anything to auth.json, it showed unexpected status 401 Unauthorized: missing api key, url: http://127.0.0.1:48760/v1/responses. I am using Codex Manager for account managment. Everything worked fine beofore 0.149.0. After I downgraded to 0.148.0, the problem was gone immediately.

    What steps can reproduce the bug?

    Use openai api key to login in 0.149.0

    What is the expected behavior?

    _No response_

    Additional information

    _No response_

    图片

    图片

    主楼
  • VeryAQ

    codex越更新越多bug,在143后的版本居然有老会话无法切换模型的问题,界面上显示切换成功了,但是打开后台一看模型id都是切换以前的

    #1
  • 芳泽霞

    config.toml加入一条配置

    requires_openai_auth = true

    图片

    #2
  • null

    神医啊大夫,好像确实可以了,我之前好像因为什么被我关了,忘记了

    #3
  • zhao

    图片

    同样的问题,最近codex各种bug层出不穷

    #4
  • null

    我用的是desktop,CLI 应该也有相同的配置 ,按照楼上的方法试试应该可以

    #5
  • zuoyi.wan

    图片

    149版本开始要显示写明

    requires_openai_auth = true 字段了,真tm坑

    #6

发表回复

登录后回复