After playing around with things and spitting out hundred of console logs.
I realized that this is the culprit in the server...
const headers = req.headers;
Instead of creating a new header, I was taking the header of the previous request and trying to use that in my new request, thus causing this error
Instead now I am doing this
const headers = req.body.headers;