question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NextJs 12.2.3 middleware (after update nextJs to 12.2.3 can't make request inside middleware)

See original GitHub issue

Bug description

NextJs 12.2.3 middleware (after update nextJs to 12.2.3 can’t make request inside middleware)

NextJs 12.1.6 don’t have problem with using prisma inside middleware

  • OS: Mac OS
  • Database: PostgreSQL
  • Node.js version: 16

Prisma Version

4.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Weakkycommented, Aug 4, 2022

Hey, @sannajammeh, do you confirm this issue is fixed for you? If so, we’ll close it 👍

1reaction
garrensmithcommented, Jul 29, 2022

Could you open a ticket on next.JS. We haven’t changed anything around that. This could be something that has changed in next.js


From: eposha @.> Sent: Thursday, July 28, 2022 6:40:27 PM To: prisma/prisma @.> Cc: Garren @.>; Comment @.> Subject: Re: [prisma/prisma] NextJs 12.2.3 middleware (after update nextJs to 12.2.3 can’t make request inside middleware) (Issue #14474)

The P5010 means the Prisma Client cannot connect to the data proxy. Could you check the client is generated correctly and the connection string is correct.

The Prisma configuration is set correctly, because only in the middleware this error occurs, in other parts of the application the Prisma works correctly

— Reply to this email directly, view it on GitHubhttps://github.com/prisma/prisma/issues/14474#issuecomment-1198385808, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AABL2ASN2MKYIVAS3KSE45LVWKZXXANCNFSM54PVUIBQ. You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Guide - Next.js
Upgrade Guide. Upgrading from 12 to 13. To update to Next.js version 13, run the following command using your preferred package manager:
Read more >
Next.js 12.2: Middleware, On-Demand ISR, and Edge API ...
Next.js 12.2 introduces stable Middleware and On- Demand ISR, experimental Edge SSR and API Routes, and more. Check out the blog post for ......
Read more >
NextJS 12.2 middleware upgrade, return 401 basic auth
to the new middleware setup ( /src/middleware.js ) so that the user does not get redirected, and gets the basic auth prompt when...
Read more >
How to Use Next.js Middleware - ctnicholas.dev
With the release of Next.js 12, Vercel Edge Functions have been announced, allowing for super speedy edge-optimised functions.
Read more >
Next.js (@nextjs) / Twitter
Next.js 13 ◇ Layouts ◇ React Server Components w/ Streaming ... `next/image` ◇ Middleware: Return `Response` and set `Request` headers ◇ Edge API...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found