Closed AlexBHarley closed 4 years ago
Sorry, this was me being an idiot, spent around 2 hours debugging and digging through various libraries.
I had set the Content-Type
header on my GET
request instead of Accept
. Another library I'm using (https://github.com/netlify/netlify-lambda) was rewriting the body based on that header and encoding it into base64, that was why the bodyParser library was blowing up.
Just leaving this here so I can come back to it later and try fix it.
I've got two routes set up currently
The get fails whether I use
cURL
orwindow.fetch
on theGET /
route.My work around has been