Next.js Discord

Discord Forum

Infinite 401 on middleware using 14.0.2

Answered
Crème D’Argent posted this in #help-forum
Open in Discord
Crème D’ArgentOP
I have a middleware that is using Clerk and based on the platforms middleware. Upgrading to 14.0.2 causes an infinite 401 - downgrading to 14.0.1 and it all works fine again. Curious what the issue may be?

https://gist.github.com/msywulak/dfaf49652cdc1b553233836f106f2259

 â—‹ Compiling /home ...
 ✓ Compiled /home in 4s (1687 modules)
 GET / 200 in 4699ms
 GET / 200 in 4546ms
 GET /_next/image?url=%2Flogo.png&w=640&q=75 304 in 95ms
 ✓ Compiled in 503ms (713 modules)
 GET / 401 in 10ms
 GET / 401 in 3ms
 GET / 401 in 4ms
 GET / 401 in 4ms
 GET / 401 in 4ms
 GET / 401 in 3ms
 GET / 401 in 4ms
 GET / 401 in 3ms
 GET / 401 in 4ms
 GET / 401 in 5ms
 GET / 401 in 3ms
 GET / 401 in 3ms
 GET / 401 in 3ms
 GET / 401 in 4ms
 GET / 401 in 3ms
 GET / 401 in 3ms
 GET / 401 in 3ms
 GET / 401 in 2ms
 GET / 401 in 3ms
 GET / 401 in 3ms
Answered by Crème D’Argent
If someone finds this in the future... https://github.com/vercel/next.js/pull/58500 will address this issue.
View full answer

1 Reply

Crème D’ArgentOP
If someone finds this in the future... https://github.com/vercel/next.js/pull/58500 will address this issue.
Answer