Skip to content

Postgres: too many bind variables in prepared statement on findMany() #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
masterkain opened this issue Sep 17, 2024 · 0 comments
Closed

Comments

@masterkain
Copy link
Member

prisma/prisma#21648

Argument `message` must not be null.
    at An (/app/node_modules/@prisma/client/runtime/library.js:114:7526)
    at _n.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7392)
    at _n.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7057)
    at _n.request (/app/node_modules/@prisma/client/runtime/library.js:121:6741)
    at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9355)
    at async d (/app/.next/server/app/api/v3/notices/route.js:1:1461)
    at async y (/app/.next/server/app/api/v3/notices/route.js:1:3104)
    at async /app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:34666
    at async eS.execute (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:25813)
    at async eS.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:35920) {
  clientVersion: '5.18.0'
}
PrismaClientKnownRequestError: 
Invalid `prisma.hourlyOccurrence.groupBy()` invocation:


Assertion violation on the database: `too many bind variables in prepared statement, expected maximum of 32767, received 295421`
    at _n.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7749)
    at _n.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7057)
    at _n.request (/app/node_modules/@prisma/client/runtime/library.js:121:6741)
    at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9355)
    at async N (/app/.next/server/app/projects/[project_id]/edit/page.js:1:104127) {
  code: 'P2035',
  clientVersion: '5.18.0',
  meta: {
    modelName: 'HourlyOccurrence',
    database_error: 'too many bind variables in prepared statement, expected maximum of 32767, received 295421'
  },
  digest: '1655895024'
}
PrismaClientKnownRequestError: 
Invalid `prisma.hourlyOccurrence.groupBy()` invocation:


Assertion violation on the database: `too many bind variables in prepared statement, expected maximum of 32767, received 295421`
    at _n.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7749)
    at _n.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7057)
    at _n.request (/app/node_modules/@prisma/client/runtime/library.js:121:6741)
    at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9355)
    at async N (/app/.next/server/app/projects/[project_id]/edit/page.js:1:104127) {
  code: 'P2035',
  clientVersion: '5.18.0',
  meta: {
    modelName: 'HourlyOccurrence',
    database_error: 'too many bind variables in prepared statement, expected maximum of 32767, received 295421'
  },
  digest: '1655895024'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant