Error trying to generate Prisma Client inside OpenAI Codex Cloud environment. Can't download binary
I'm trying to use OpenAI Codex AI agent (Cloud).
I'm new to this (not a big vibecoder myself) but Codex is mostly working.
The only thing I can't get right despite having tryied a lot of different stuff is have it successfully generate my Prisma Client inside its cloud container so that it could run the code and test stuff autonomously (I don't mean to really use the client making requests to any database. its just that without the generated client I get TypeScript errors where I'm importing it).
The error when generating the Prisma Client seems to happen when it tries to download a binary:
Full error bellow:
Codex environment is restrictive regarding network access. I have tried to enable full network access (for all methods and all hosts) although insecure, just for testing, but still got the same error.
Has anyone succeeded in making this work?
Is there any workaround for such environments with restricted network access?
I know that Prisma has to use/generate binaries specific to the OS, but have no idea how to make this scenario work.
I'm new to this (not a big vibecoder myself) but Codex is mostly working.
The only thing I can't get right despite having tryied a lot of different stuff is have it successfully generate my Prisma Client inside its cloud container so that it could run the code and test stuff autonomously (I don't mean to really use the client making requests to any database. its just that without the generated client I get TypeScript errors where I'm importing it).
The error when generating the Prisma Client seems to happen when it tries to download a binary:
Error: request to https://binaries.prisma.sh/all_commits/85179d7826409ee107a6ba334b5e305ae3fba9fb/debian-openssl-3.0.x/schema-engine.gz.sha256 failed, reason: Full error bellow:
Codex environment is restrictive regarding network access. I have tried to enable full network access (for all methods and all hosts) although insecure, just for testing, but still got the same error.
Has anyone succeeded in making this work?
Is there any workaround for such environments with restricted network access?
I know that Prisma has to use/generate binaries specific to the OS, but have no idea how to make this scenario work.