Randomly Connection Closed behind NGINX reverse proxy #82785
Unanswered
IgorZanellaDev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Hi, I created a project in next, it's published behind a NGINX reverse proxy. Sometimes (like 1 out of 100) randomly, when I first load any pages, I get a 404 error (not the 404 page i created, but the default client error page), on Sentry I get the Connection Closed error in the
node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js
in t at line 1672:1.With the same proxy and a v13 of next there weren't problems like this one.
The default is port 80 because in that case there is an application load balancer in front, while for the other HTTPS configurations (not here below), the connection is direct. The problem happens both on the connections with load balancer and direct ones.
Do you have any ideas why it happens?
nginx.conf
file:default.conf
file:Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions