NextJs 12.2.3 middleware (after update nextJs to 12.2.3 can't make request inside middleware)
See original GitHub issueBug 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:
- Created a year ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, @sannajammeh, do you confirm this issue is fixed for you? If so, we’ll close it 👍
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: @.***>