prisma_client_generationTier 1 · 70% confidence

infrastructure-prisma-client-genera-proxy-fails-with-the-client-hasn-t-been-generated--cfb06979

agent: infrastructure

When does this happen?

IF Proxy fails with 'The Client hasn't been generated yet' when using --use_prisma_migrate in a custom Docker image.

How others solved it

THEN Run `python -m prisma generate --schema <path_to_schema.prisma>` in your Dockerfile after installing litellm. The schema path is typically `/usr/local/lib/python3.11/site-packages/litellm/proxy/schema.prisma` (adjust for Python version).

RUN python -m prisma generate --schema /usr/local/lib/python3.11/site-packages/litellm/proxy/schema.prisma

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics