You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for such a great package, until this bug it has worked great. When listening for new email using onNewEmail, I receive the following error: TypeError: First argument needs to be a number, array or string.
The message I am listening for has an attachment and that seems to be what is causing the error. Any help would be great, as it seems like a simple fix. Full stack trace is as follows: Exception in setTimeout callback: TypeError: First argument needs to be a number, array or string. at decodeBase64 (decoders.js:34:10) at message.js:49:16 at Array.forEach (native) at Function._.each._.forEach (packages/underscore/packages/underscore.js:134:1) at messageFromPayload (message.js:46:7) at parseDoc (message.js:34:12) at new GMail.Message (message.js:5:18) at [object Object].GMail.Listener.handleNewMessage (listener.js:28:17) at listener.js:16:10
While debugging I found in the messageFromPayload function is trying to decode the attachment part which has no body and therefore part.body.data is undefined.
Thanks again!
The text was updated successfully, but these errors were encountered:
Thank you for such a great package, until this bug it has worked great. When listening for new email using onNewEmail, I receive the following error:
TypeError: First argument needs to be a number, array or string.
The message I am listening for has an attachment and that seems to be what is causing the error. Any help would be great, as it seems like a simple fix. Full stack trace is as follows:
Exception in setTimeout callback: TypeError: First argument needs to be a number, array or string. at decodeBase64 (decoders.js:34:10) at message.js:49:16 at Array.forEach (native) at Function._.each._.forEach (packages/underscore/packages/underscore.js:134:1) at messageFromPayload (message.js:46:7) at parseDoc (message.js:34:12) at new GMail.Message (message.js:5:18) at [object Object].GMail.Listener.handleNewMessage (listener.js:28:17) at listener.js:16:10
While debugging I found in the messageFromPayload function is trying to decode the attachment part which has no body and therefore part.body.data is undefined.
Thanks again!
The text was updated successfully, but these errors were encountered: