codex icon indicating copy to clipboard operation
codex copied to clipboard

Error response Error code: 500 Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)>. Error code explanation: 500 - Server got itself in trouble.

Open kundeng opened this issue 1 year ago • 13 comments

What version of Codex is running?

Error response Error code: 500 Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)>. Error code explanation: 500 - Server got itself in trouble.

Which model were you using?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

Error response Error code: 500

Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)>.

Error code explanation: 500 - Server got itself in trouble.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

kundeng avatar Aug 05 '25 14:08 kundeng

Same issue.

Image

farah avatar Aug 06 '25 03:08 farah

same here, can't login with my chatGPT

sedghi avatar Aug 07 '25 18:08 sedghi

same here

Whiteknight07 avatar Aug 07 '25 19:08 Whiteknight07

#1951

linpatr avatar Aug 07 '25 20:08 linpatr

same

nextagencyio avatar Aug 08 '25 14:08 nextagencyio

Same. Very bad :(

zidinberu avatar Aug 08 '25 18:08 zidinberu

Same, very bad I paid for something I can't use...

paolomax avatar Aug 11 '25 20:08 paolomax

+1

j-sustr avatar Aug 12 '25 07:08 j-sustr

+1

adityasaravana avatar Aug 13 '25 08:08 adityasaravana

https://github.com/openai/codex/issues/1951#issuecomment-3165404122

This method solved the problem. It seems that the cause was not a bug, but rather that the CA root certificates maintained by the execution environment were outdated.

ktyubeshi avatar Aug 13 '25 16:08 ktyubeshi

that works thanks!

On Wed, Aug 13, 2025 at 11:08 AM ktyubeshi @.***> wrote:

ktyubeshi left a comment (openai/codex#1849) https://github.com/openai/codex/issues/1849#issuecomment-3184531715

#1951 (comment) https://github.com/openai/codex/issues/1951#issuecomment-3165404122

This method solved the problem. It seems that the cause was not a bug, but rather that the CA root certificates maintained by the execution environment were outdated.

— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/1849#issuecomment-3184531715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIPTANAERZP5DYMWUWOPZL3NNPGPAVCNFSM6AAAAACDFGQ64CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOBUGUZTCNZRGU . You are receiving this because you commented.Message ID: @.***>

nextagencyio avatar Aug 13 '25 16:08 nextagencyio

Solved by upgrading cerfifi on my macOS 15

python3 -m pip install --upgrade certifi

j-sustr avatar Aug 13 '25 23:08 j-sustr

I think this issue is no longer relevant. The CLI no longer relies on the local Python install.

etraut-openai avatar Nov 02 '25 16:11 etraut-openai