Next js server request body empty some times
Sometimes when making a request, the request body is working fine and sometimes the body is empty.
I know my api is fine because i tested it a lot with postman
I found that if I put req.clone and await clone.text() the response body always returns even though I am not doing anything with the clone I just added that code
This is nextjs api server request
any ideas??
3 Replies
?crossposting
Please do not post your question in multiple channels/post it multiple times per the rules at #😃welcome-and-rules. It creates confusion for people trying to help you and doesn't get your issue or question solved any faster.