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

Teiserver swallows all email sending errors #289

Closed
p2004a opened this issue May 15, 2024 · 4 comments
Closed

Teiserver swallows all email sending errors #289

p2004a opened this issue May 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@p2004a
Copy link
Contributor

p2004a commented May 15, 2024

If sending emails fails, there isn't any error returned to user or log message created.

Calls to Teiserver.Mailer.deliver_now aren't checking the return tuple, and code isn't written to handle failures in sending of the emails: e.g. reset code is created before sending email and not cleaned up if it fails, so if email sending fails it's not logged, user code is still created blocking new recovery codes creation, and user has have to wait 24h to retry sending password link.

@L-e-x-o-n L-e-x-o-n added the bug Something isn't working label May 22, 2024
@StanczakDominik
Copy link
Collaborator

Closed by #290

@p2004a
Copy link
Contributor Author

p2004a commented Jun 4, 2024

@StanczakDominik Is that also handling registration?

@StanczakDominik
Copy link
Collaborator

I'll double check

@geekingfrog
Copy link
Contributor

I did a check locally, and it only logs an error, there's no feedback for chobby.
The server logs the error:

[error] Error sending new user email - <THE-EMAIL> - {:network_failure, '127.0.0.1', {:error, :econnrefused}}

but the code is still in the database.

I created: #310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants