question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth token missing for account

See original GitHub issue
Auth token missing for accountError: Auth token missing for account
    at NylasAPIRequest._defaultAuth (/src/flux/nylas-api-request.es6:179:15)
    at /src/flux/nylas-api-request.es6:45:53
    at next (<anonymous>)
    at step (/src/flux/nylas-api-request.es6:7: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 /src/flux/nylas-api-request.es6:7:1
    at /src/flux/syncback-task-api-request.es6:72:53
    at next (<anonymous>)
    at step (/src/flux/syncback-task-api-request.es6:6: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 /src/flux/syncback-task-api-request.es6:6: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 SyncbackTaskAPIRequest.run (/src/flux/syncback-task-api-request.es6:70:12)
    at SendDraftTask.<anonymous> (/src/flux/tasks/send-draft-task.es6:124:33)
    at next (<anonymous>)
    at step (/src/flux/tasks/send-draft-task.es6:15: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 SendDraftTask._sendWithSingleBody (/src/flux/tasks/send-draft-task.es6:15:1)
    at /src/flux/tasks/send-draft-task.es6:93:18
    at next (<anonymous>)
    at step (/src/flux/tasks/send-draft-task.es6:15: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 /src/flux/tasks/send-draft-task.es6:15: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._settlePromise0 (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:691:18)
    at Async._drainQueue (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:133:16)
    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)APIError: Auth token missing for account
    at new APIError (/src/flux/errors.es6:28:19)
    at NylasAPIRequest._defaultAuth (/src/flux/nylas-api-request.es6:188:13)
    at /src/flux/nylas-api-request.es6:45:53
    at next (<anonymous>)
    at step (/src/flux/nylas-api-request.es6:7:1)
    at /src/flux/nylas-api-request.es6:7:1
    at /src/flux/syncback-task-api-request.es6:72:53
    at next (<anonymous>)
    at step (/src/flux/syncback-task-api-request.es6:6:1)
From previous event:
    at /src/flux/syncback-task-api-request.es6:6:1
From previous event:
    at SyncbackTaskAPIRequest.run (/src/flux/syncback-task-api-request.es6:70:12)
    at SendDraftTask.<anonymous> (/src/flux/tasks/send-draft-task.es6:124:33)
    at next (<anonymous>)
    at step (/src/flux/tasks/send-draft-task.es6:15:1)
From previous event:
    at SendDraftTask._sendWithSingleBody (/src/flux/tasks/send-draft-task.es6:15:1)
    at /src/flux/tasks/send-draft-task.es6:93:18
    at next (<anonymous>)
    at step (/src/flux/tasks/send-draft-task.es6:15:1)
From previous event:
    at /src/flux/tasks/send-draft-task.es6:15:1
From previous event:
    at SendDraftTask.performRemote (/src/flux/tasks/send-draft-task.es6:46:6)
    at SendDraftTask.runRemote (/src/flux/tasks/task.es6:230:19)
    at TaskQueue._processTask (/src/flux/stores/task-queue.coffee:258:10)
    at TaskQueue._processTask (/src/flux/stores/task-queue.coffee:1:1)
    at TaskQueue._processQueue (/src/flux/stores/task-queue.coffee:222:8)
    at TaskQueue._processQueue (/src/flux/stores/task-queue.coffee:1:1)
    at /src/flux/stores/task-queue.coffee:372:10
    at /Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/underscore/underscore.js:768:19
Are there any related issues?

I found this problem on a closed issue. Somebody pointed out that the relase 0.4.x solver the issue. Unfortunately I’m using a much more recent version…

What operating system are you using?

Mac OS

What version of Nylas Mail are you using?

1.0.39

Bug?

Do you have any third-party plugins installed? If so, which ones?

None

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

I only have this problem with one account. The email provider is mail.totvs.com.br. I can fetch the e-mails and I receive a notification when new messages arrive but I’m unable to have outgoing e-mail to work.

The server configuration is like this:

Configuração POP
Nome do servidor: mail.totvs.com.br
Porta: 995
Método de criptografia: SSL



Configuração IMAP
Nome do servidor: mail.totvs.com.br
Porta: 993
Método de criptografia: SSL



Configuração SMTP
Nome do servidor: mail.totvs.com.br
Porta: 587
Método de criptografia: TLS

Is the issue reproducible with a particular attachment, message, signature, etc?

Any e-mail using the provider above yields the error

Feature Request?

Does this feature exist in another mail client or tool you use?

This is a bug

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danielmelogpicommented, Mar 29, 2017

It seems that the security configuration is differente between the imap and smtp servers. The checkbox to set that doesn’t allow this differentece, always picking up the last one modified and applying to both.

Could it be a suggestion to allow for different uses of ssl and tls on the configuration view?

0reactions
Konzertheldcommented, Jul 21, 2017

Same issue with a self-hosted postfix / dovecot mail server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve API Gateway REST API 403 “Missing Authentication ...
How do I troubleshoot API Gateway REST API endpoint 403 "Missing Authentication Token" errors? Last updated: 2022-08-26. When I try to invoke my...
Read more >
Missing Authentication Token while accessing API Gateway?
You are invoking the API from within your AWS account (example: from an EC2 instance created in your account). Put necessary credential (access...
Read more >
How do I fix the error "Refresh token missing"?
Refresh token missing. Please remove Groove from your authorized applications at: https://security.google.com/settings/security/permissions ...
Read more >
My Authy Tokens are Missing or Lost
Recent Phone Change or Account recovery sync issues ... Users who have recently completed a phone change or account recovery could see their...
Read more >
Access token is missing in the request header. #292 - GitHub
I had the same error ("Access token is missing in the request header.") and found out, that API is case sensitive to x-amz-access-token...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found