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

SMTP mail issue Missing credentials for "PLAIN" #10861

Open
programmeddeath1 opened this issue Mar 14, 2025 · 1 comment
Open

SMTP mail issue Missing credentials for "PLAIN" #10861

programmeddeath1 opened this issue Mar 14, 2025 · 1 comment

Comments

@programmeddeath1
Copy link

I have self-hosted affine, and trying to just get the smtp to work for invite mails,

The sending of the mail fails in frontend with

Failed to load resource: the server responded with a status of 500 (Internal Server Error)Understand this errorAI
vendor.77296a2a.js:sourcemap:985 BackendError: Server error: An internal error occurred.
    at UserFriendlyError.fromAnyError (app.8de0d112.js:sourcemap:37002:4490)
    at FetchService.fetch (app.8de0d112.js:sourcemap:11909:3595)
    at async AuthService.sendEmailMagicLink (app.8de0d112.js:sourcemap:37712:5811)
    at async app.8de0d112.js:sourcemap:32768:13579

The affine server logs show following error -

[Nest] 1  - 03/14/2025, 8:36:15 AM VERBOSE [Locker] <allinone:http:7286ab05-ba4e-4804-8c43-2a3661fb154e> Client cluster:d8uOsQoD2cpDDs2si6zk6:sUNvU3v_ik9BGFagN14un is trying to lock resource doc:update:18f6386a-2025-4007-887f-db6f583af0a1:18f6386a-2025-4007-887f-db6f583af0a1
[Nest] 1  - 03/14/2025, 8:37:32 AM   ERROR [HTTP] <allinone:http:3d1583f6-183a-4af2-a468-5036b24100b3> internal_server_error ({"requestId":"allinone:http:3d1583f6-183a-4af2-a468-5036b24100b3"})
internal_server_error: An internal error occurred.
    at mapAnyError (file:///app/dist/base/nestjs/exception.js:46:19)
    at GlobalExceptionFilter.catch (file:///app/dist/base/nestjs/exception.js:57:23)
    at ExceptionsHandler.invokeCustomFilters (/app/node_modules/@nestjs/core/exceptions/exceptions-handler.js:30:26)
    at ExceptionsHandler.next (/app/node_modules/@nestjs/core/exceptions/exceptions-handler.js:14:18)
    at /app/node_modules/@nestjs/core/router/router-proxy.js:13:35
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Caused by:

Error: Missing credentials for "PLAIN"
    at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)
    at SMTPConnection.login (/app/node_modules/nodemailer/lib/smtp-connection/index.js:454:38)
    at /app/node_modules/nodemailer/lib/smtp-transport/index.js:272:32
    at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:215:17)
    at Object.onceWrapper (node:events:632:28)
    at SMTPConnection.emit (node:events:518:28)
    at SMTPConnection._actionEHLO (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1371:14)
    at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)
    at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)
    at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
@affine-issue-bot
Copy link

Issue Status: 🆕 *Untriaged

*🆕 Untriaged

The team has not yet reviewed the issue. We usually do it within one business day.
Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 *Untriaged
Development

No branches or pull requests

1 participant