Skip to content
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

POSTGRES_URL_NON_POOLING error #775

Open
snmbala opened this issue Oct 9, 2024 · 0 comments
Open

POSTGRES_URL_NON_POOLING error #775

snmbala opened this issue Oct 9, 2024 · 0 comments

Comments

@snmbala
Copy link

snmbala commented Oct 9, 2024

I'm getting the below error while running a nextjs app, using postgresDB in vercel. It is working fine on server, getting this error only on localhost. I have increase the time to 30 seconds still getting the same error.

GET /api/user/[email protected] 500 in 10645ms
(node:44061) Warning: Label 'Database Query Time' already exists for console.time()
(Use `node --trace-warnings ...` to show where the warning was created)
(node:44061) Warning: Label 'Database Query Time' already exists for console.time()
(node:44061) Warning: Label 'Database Query Time' already exists for console.time()
Error fetching user details: PrismaClientInitializationError: 
Invalid `prisma.user.findUnique()` invocation:


Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current connection pool timeout: 10, connection limit: 17)
    at _n.handleRequestError (/Users/balamm/github/goalbook/app.goalbook/node_modules/@prisma/client/runtime/library.js:122:7227)
    at _n.handleAndLogRequestError (/Users/balamm/github/goalbook/app.goalbook/node_modules/@prisma/client/runtime/library.js:122:6235)
    at _n.request (/Users/balamm/github/goalbook/app.goalbook/node_modules/@prisma/client/runtime/library.js:122:5919)
    at async l (/Users/balamm/github/goalbook/app.goalbook/node_modules/@prisma/client/runtime/library.js:131:9116)
    at async GET (webpack-internal:///(rsc)/./app/api/user/[email]/route.ts:20:22)
    at async /Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:55778
    at async eO.execute (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:46527)
    at async eO.handle (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:57112)
    at async doRender (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:1352:42)
    at async cacheEntry.responseCache.get.routeKind (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:1562:40)
    at async DevServer.renderToResponseWithComponentsImpl (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:1482:28)
    at async DevServer.renderPageComponent (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:1908:24)
    at async DevServer.renderToResponseImpl (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:1946:32)
    at async DevServer.pipeImpl (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:921:25)
    at async NextNodeServer.handleCatchallRenderRequest (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/next-server.js:272:17)
    at async DevServer.handleRequestImpl (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/base-server.js:817:17)
    at async /Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/dev/next-dev-server.js:339:20
    at async Span.traceAsyncFn (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/trace/trace.js:154:20)
    at async DevServer.handleRequest (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/dev/next-dev-server.js:336:24)
    at async invokeRender (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/lib/router-server.js:173:21)
    at async handleRequest (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/lib/router-server.js:350:24)
    at async requestHandlerImpl (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/lib/router-server.js:374:13)
    at async Server.requestListener (/Users/balamm/github/goalbook/app.goalbook/node_modules/next/dist/server/lib/start-server.js:141:13) {
  clientVersion: '5.16.1',
  errorCode: undefined
}
Error fetching user details: PrismaClientInitializationError: 
Invalid `prisma.user.findUnique()` invocation:

Not sure what error i'm doing.

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