Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer or Uint8Array. Received type boolean (true) #106

Open
mogadanez opened this issue May 10, 2021 · 3 comments

Comments

@mogadanez
Copy link

mogadanez commented May 10, 2021

node version:
v14.15.4

after upgrade to the latest version (2.1.3) start getting error:


TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer or Uint8Array. Received type boolean (true)
at write_ (_http_outgoing.js:696:11)
at ClientRequest.write (_http_outgoing.js:661:15)
at FormData.ondata (internal/streams/legacy.js:19:31)
at FormData.emit (events.js:315:20)
at FormData.EventEmitter.emit (domain.js:467:12)
at FormData.CombinedStream.write (/api/node_modules/combined-stream/lib/combined_stream.js:138:8)
at FormData.CombinedStream._pipeNext (/api/node_modules/combined-stream/lib/combined_stream.js:126:8)
at FormData.CombinedStream._realGetNext (/api/node_modules/combined-stream/lib/combined_stream.js:99:10)
at FormData.CombinedStream._getNext (/api/node_modules/combined-stream/lib/combined_stream.js:82:12)
at FormData.CombinedStream.resume (/api/node_modules/combined-stream/lib/combined_stream.js:154:10)
at FormData.CombinedStream.pipe (/api/node_modules/combined-stream/lib/combined_stream.js:66:8)
at /api/node_modules/mailgun.js/dist/mailgun.js:2:49246
at /api/node_modules/mailgun.js/dist/mailgun.js:2:49255
at new Promise (<anonymous>)
at I (/api/node_modules/mailgun.js/dist/mailgun.js:2:45005)
at global.fetch.global.fetch (/api/node_modules/mailgun.js/dist/mailgun.js:2:27367)

@orliesaurus
Copy link
Owner

@mogadanez - can you share the code you're using please to send emails?

@idandagan1
Copy link

Any progress on that?
I'm getting the same issue after upgrading to 2.1.3

@orliesaurus
Copy link
Owner

Any progress on that?
I'm getting the same issue after upgrading to 2.1.3

Can you share the code that you re using to get this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants