OK, after a lot of digging, I found out that requestSettings
should have:
encoding: null
And then body
will be of type Buffer
, instead of the default, which is string.
More Related Contents:
- Removing nested promises
- Unable to verify leaf signature
- How can I chain these functions together with promises?
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- How to maintain a request session in NodeJS
- How can I make this call to request in nodejs synchronous?
- How to get data out of a Node.js http get request
- Node.js request CERT_HAS_EXPIRED
- How to fix ‘$(…).click is not a function’ in Node/Cheerio
- How to Protect website code PHP / JS? [closed]
- Discord bot simple editing its own message gives me error
- Npm Package Install Problem (found 23 vulnerabilities)
- What is the difference between a User and a GuildMember in discord.js?
- I know that callback function runs asynchronously, but why?
- Make Axios send cookies in its requests automatically
- When does JS interpret {} as an empty block instead of an empty object?
- How can I scrape pages with dynamic content using node.js?
- ES6 template literals vs. concatenated strings
- require is not defined? Node.js
- Can’t throw error from within an async promise executor function
- Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai
- Why is bind slower than a closure?
- Handling errors in express async middleware
- node and Error: EMFILE, too many open files
- How to download and unzip a zip file in memory in NodeJs?
- Performance of NodeJS with large amount of callbacks
- nodejs – error self signed certificate in certificate chain
- How to count the correct length of a string with emojis in javascript?
- Get elements from page.evaluate in Puppeteer? [duplicate]
- NodeJS – setTimeout(fn,0) vs setImmediate(fn)