UND_ERR_REQ_CONTENT_LENGTH_MISMATCH with Server Actions
Unanswered
Shy Albatross posted this in #help-forum
Shy AlbatrossOP
I am on 13.5.6 and having the issue, "UND_ERR_REQ_CONTENT_LENGTH_MISMATCH" causing with "server action" while "revalidatingTag or revalidatingPath" . How to fix this ?
I have implemeted API routes and using that called backed server api using fetch api to get data now I want to revalidate that api using tag but getting above error.
Does anyone have any idea how to fix it?
I have implemeted API routes and using that called backed server api using fetch api to get data now I want to revalidate that api using tag but getting above error.
Does anyone have any idea how to fix it?
2 Replies
Bigeye scad
Did you ever solve this?
Bigeye scad
Hey all, I was able to resole the UND_ERR_REQ_CONTENT_LENGTH_MISMATCH error by switching from fetch to axios.
For a full solution, see here: https://janac.medium.com/nextjs-fails-with-und-err-req-content-length-mismatch-after-redirect-from-server-0acdc0bfb194
For a full solution, see here: https://janac.medium.com/nextjs-fails-with-und-err-req-content-length-mismatch-after-redirect-from-server-0acdc0bfb194