codex icon indicating copy to clipboard operation
codex copied to clipboard

error: crypto not defined

Open fwood opened this issue 1 year ago • 1 comments

What version of Codex is running?

can't execute this command

Which model were you using?

N/A

What platform is your computer?

Docker on Linux

What steps can reproduce the bug?

codex Initializing agent…

ERROR crypto is not defined

file:///usr/lib/node_modules/@openai/codex/dist/cli.js:559:1997

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

I did not encounter this problem yesterday. I rebuilt by docker to respond to an update request from codex (I am using codex inside a docker) and upon rebuild this error happens. Note codex worked fine before the latest request to upgrade and no other changes were made to the docker and

node -e "console.log(typeof crypto);" object

returns thusly

fwood avatar Apr 23 '25 20:04 fwood

What version of node are you running? It requires v22

fouad-openai avatar Apr 23 '25 21:04 fouad-openai