Continuous reconnection, unable to use
Resolved 💬 8 comments Opened Dec 12, 2025 by youtonghy Closed Dec 14, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
v0.71.0
What subscription do you have?
Teams
Which model were you using?
gpt-5.2 high
What platform is your computer?
Linux 6.1.0-10-amd64 x86_64 unknown
What issue are you seeing?
No matter what conversation I start, it will fail to connect 5 times until it shows unexpected status 401 Unauthorized:
I tried to log in again, but the result was the same.
What steps can reproduce the bug?
Uploaded thread: 019b10a2-e212-7623-9789-7ac57c41a8fb
What is the expected behavior?
_No response_
Additional information
_No response_
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for reporting. The uploaded session isn't of much use in this case because, as you note, the failure occurs immediately before any messages are added to the thread.
Let's see if we can figure out what's wrong. The "401 Unauthorized" error typically indicates an authorization error. Are you logging in with your ChatGPT account or using an API Key? If it's the former, try logging out and logging back in. If it's the latter, double check that you are using a valid API key.
Was this working with a previous version of codex?
same here.
<img width="1388" height="635" alt="Image" src="https://github.com/user-attachments/assets/7e344f91-127f-40af-a715-7cce102ad25f" />
Are you using SSO?
Having the same issue, in WSL2 using Azure in v0.71.0. 0.69 works fine.
@youtonghy, I took another look at the information you uploaded and found some useful information in the logs. The problem is indeed a bad API key. Please double check the API key that you've entered. If it looks correct, try creating a new OpenAI API key.
@kdawgwilk, this issue isn't related to ChatGPT logins, so it's definitely not related to SSO.
@Zanzavar, please use the
/feedbackslash command and open a new issue with your thread ID.can confirm it works now for me on 0.72 with gpt-5.2
@etraut-openai Thanks for your reply. I've discovered an issue: if I log out and then log back into my account while using an API key, a network connection failure error occur. It only works normally if I delete config.toml and auth.json before logging back in.