Replies: 5 comments
-
Had the same problem and found your post. In our case, we have called an internal api endpoint via While deploying the app into our OpenShift cluster, the We solved it by setting an environment variable with the fallback to the const origin = process.env.APPLICATION_URL
? // eslint-disable-next-line no-restricted-properties
`https://${process.env.APPLICATION_URL}`
: request.nextUrl.origin |
Beta Was this translation helpful? Give feedback.
-
any solution ?? |
Beta Was this translation helpful? Give feedback.
-
i was using request.nextUrl.origin in my middleware.ts file i replaced it to http://127.0.0.1:3000 and it worked fine and also using http://localhost:3000 would not work |
Beta Was this translation helpful? Give feedback.
-
same issue. no solution yet? |
Beta Was this translation helpful? Give feedback.
-
for everyone who is having this issue. I do not think it is a bug that needs to be fixed by vercel what is happening you are likely making an api call using an unsupported protocol in your middleware. you can do something like this to figure out the protocol and host
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Nextjs app running in docker, responds with 500 on every request on every route. The app is using traefik for SSL/reverse proxy, other services running the same traefik config have no issues whatsoever. Next server log only shows
ERR_SSL_WRONG_VERSION_NUMBER
.Additional information
Next server log:
The next app is built with option
output: standalone;
and run usingnode server.js
command.We use Next.js v14.
traefik.yaml
: https://pastebin.com/McXyKzZRBeta Was this translation helpful? Give feedback.
All reactions