UND_ERR_REQ_CONTENT_LENGTH_MISMATCH using next-auth
Answered
Selkirk Rex posted this in #help-forum
Selkirk RexOP
We're getting the following error when the website is behind a reverse proxy (using apache). It turns out that
content-length is 0 for some odd reason. This error only appears when trying to log-in. We've tried updating undici (npm i undici) which didn't work, we've tried adding no-gzip to apache, and nothing has worked. This only happpens when it's behind the reverse proxy. If someone could help it'd be appreciated.Answered by tafutada777
could be the same as this issue. if so, downgrading to 13.4.7 would work.
https://github.com/vercel/next.js/issues/48744
https://github.com/vercel/next.js/issues/48744
3 Replies
could be the same as this issue. if so, downgrading to 13.4.7 would work.
https://github.com/vercel/next.js/issues/48744
https://github.com/vercel/next.js/issues/48744
Answer
undici is http/1.1 based http client btw.
Selkirk RexOP
tysm!