PrismaP
Prisma6mo ago
9 replies
ayrtonvwf

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:

Error: request to https://binaries.prisma.sh/all_commits/85179d7826409ee107a6ba334b5e305ae3fba9fb/debian-openssl-3.0.x/schema-engine.gz.sha256 failed, reason: 


Full error bellow:

@repo/database:generate: > @repo/database@1.0.0 generate /workspace/some-system/packages/database
@repo/database:generate: > prisma generate
@repo/database:generate: 
@repo/database:generate: Error: request to https://binaries.prisma.sh/all_commits/85179d7826409ee107a6ba334b5e305ae3fba9fb/debian-openssl-3.0.x/schema-engine.gz.sha256 failed, reason: 
@repo/database:generate:  ELIFECYCLE  Command failed with exit code 1.
@repo/database:generate: ERROR: command finished with error: command (/workspace/some-system/packages/database) /root/.nvm/versions/node/v24.7.0/bin/pnpm run generate exited (1)
@repo/database#generate: command (/workspace/some-system/packages/database) /root/.nvm/versions/node/v24.7.0/bin/pnpm run generate exited (1)


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.
Was this page helpful?