I was wondering exactly which error gets thrown in this situation. Is it a NetworkError, or a TypeError, etc.Be aware that the req.text() call can fail if the user hangs up the connection before the body is fully received. Make sure to handle this case. Do note this can happen in all methods that read from the request body, such as req.json(), req.formData(), req.arrayBuffer(), req.body.getReader().read(), req.body.pipeTo(), etc.
Join the Discord to ask follow-up questions and connect with the community