nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.81k stars 1.38k forks source link

SendTaskRunner.runTask: stored credentials have expiredError: SendTaskRunner.runTask: stored credentials have expired #3533

Open adriaanmol opened 7 years ago

adriaanmol commented 7 years ago

I am getting this when I'm trying to send a mail. What's this?

SendTaskRunner.runTask: stored credentials have expiredError: SendTaskRunner.runTask: stored credentials have expired at SendTaskRunner. (/internal_packages/client-sync/src/local-sync-worker/send-task-runner.es6:17:13) at next () at step (/internal_packages/client-sync/src/local-sync-worker/send-task-runner.es6:3:1) at Promise._execute (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/debuggability.js:300:9) at Promise._resolveFromExecutor (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:481:18) at new Promise (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:77:14) at SendTaskRunner. (/internal_packages/client-sync/src/local-sync-worker/send-task-runner.es6:3:1) at /internal_packages/client-sync/src/local-sync-worker/send-task-manager.es6:61:27 at next () at step (/internal_packages/client-sync/src/local-sync-worker/send-task-manager.es6:6:1) at /internal_packages/client-sync/src/local-sync-worker/send-task-manager.es6:6:1 at tryCatcher (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:510:31) at Promise._settlePromise (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:567:18) at Promise._settlePromiseCtx (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:604:10) at Async._drainQueue (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:138:12) at Async._drainQueues (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:143:10) at Async.drainQueues (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:17:14)

raulgomezc commented 7 years ago

Same happening to me, apparently, anyone with the same problem on mac?

ayozemr commented 7 years ago

Just got this :-(

SendTaskRunner.runTask: stored credentials have expired

You have to go to settings -> accounts -> select that account -> click on "Re-authenticate..." This opens Google login (In my case is a Google apps account), repeat give Nylas permissions, ok, next... Try again send that email and its working!

xrwang commented 7 years ago

Bump on this issue -- this happens intermittently and inconsistently. For example, I can be auth'd into one account and responding to some emails will work fine, other emails will throw this error message, and continuing to respond to other emails in that account will not throw this error message. Restarting Nylas seems to solve the problem for me, but would be great to have this fixed!

One thing to note -- this error seemed to have started for me after I enabled send with delay (ie wait 10 seconds and then send) instead of send immediately. https://github.com/nylas/nylas-mail/blob/master/packages/client-sync/src/local-sync-worker/send-task-runner.es6#L11 Not sure if this is helpful?