You never req.write(data); to your POST request, so your request body is actually empty, invalid.
The express req doesn’t need to be terminated. While the practice of using a parameter name for a new variable isn’t recommended, it shouldn’t make a difference here.