Skip to content

Error calling enhanced Prisma methods when using Prisma Accelerate #986

@gczh

Description

@gczh

Description and expected behavior
I was setting up Prisma Accelerate to reduce latency and mitigate cold start times of my Vercel functions.

My prisma is enhanced through zenstack. When using enhancedPrisma for queries, I get errors in the screenshot below.

I've also tried doing npx zenstack generate --no-engine and it doesn't work

Screenshots
image

Environment (please complete the following information):

  • ZenStack version: 1.7.0 (and "@zenstackhq/runtime": "1.7.0")
  • Prisma version: 5.7.1
  • Database type: Postgresql

Additional context
@ymc9 mentioned on Discord the following:

It seems to be caused by the default large transaction timeout used internally by ZenStack. Looks like a new limit set by Prisma Accelerate.

In V2 we're adding an option to configure it. Maybe we should integrate that change to the next V1 release to unblock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions