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

I'm receiving an error on set 'include_body: true' #113

Closed
steniomelo opened this issue Nov 29, 2022 · 1 comment
Closed

I'm receiving an error on set 'include_body: true' #113

steniomelo opened this issue Nov 29, 2022 · 1 comment

Comments

@steniomelo
Copy link

My code is working good.
But when I set the parameter 'include_body' to true I receive the error below.

[gmail] Error: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

When I use 'include_body: false' it works.

Can someone help me? Tks

@steniomelo
Copy link
Author

I found the error here.

I add a condition on line 72 of gmail-tester.js with this:
if(part.body.data) {

and it work for me. One of the messages returned 'undefined' on 'part.body.data' and it cause the error above.
Then it fixed! Can I submit a pull request for this? Thank you

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

1 participant