Skip to content

[BUG] Error Processing Email Queue - Error: Invalid Credentials #512

@briannelson95

Description

@briannelson95

Seems like there's a major connection flaw with email queues. My instance of Peppermint is unable to stay connected to the Google account I set up. In order to temporarily solve this I have delete the queue. Add it again with the same Client ID and Client secret. Sign into the account and then it starts working again (until the next failure).

To Reproduce

  • Start the server
  • Add an email queue using google cloud console OAuth app
  • Sign into the account you want set
  • Wait X amount of time
  • Error

Logs

peppermint           | Error processing queue de848b86-9239-4ecc-81b2-751a17462247: Error: Invalid credentials (Failure)
peppermint           |     at Connection._resTagged (/apps/api/node_modules/imap/lib/Connection.js:1502:11)
peppermint           |     at Parser.<anonymous> (/apps/api/node_modules/imap/lib/Connection.js:194:10)
peppermint           |     at Parser.emit (node:events:518:28)
peppermint           |     at Parser._resTagged (/apps/api/node_modules/imap/lib/Parser.js:175:10)
peppermint           |     at Parser._parse (/apps/api/node_modules/imap/lib/Parser.js:139:16)
peppermint           |     at Parser._tryread (/apps/api/node_modules/imap/lib/Parser.js:82:15)
peppermint           |     at Parser._cbReadable (/apps/api/node_modules/imap/lib/Parser.js:53:12)
peppermint           | Email fetch completed
peppermint           |     at TLSSocket.emit (node:events:518:28)
peppermint           |     at emitReadable_ (node:internal/streams/readable:834:12)
peppermint           |     at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
peppermint           |   type: 'no',
peppermint           |   textCode: 'AUTHENTICATIONFAILED',
peppermint           |   source: 'authentication'
peppermint           | }
peppermint           | Connection ended
peppermint           | Email fetch completed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions