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

[BUG] Emailer errors out when sending with "TemplateRegistrationFailed" #549

Open
vorpalhex opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@vorpalhex
Copy link

Description of the Bug

Registering an smtp server and then attempting to use seems to not work. I don't believe this is a configuration error on my side, but it's possible I'm missing something.

Expected Behavior

Email/book to be sent

To Reproduce

  1. Register new emailer through UI (I'm using remail)
  2. Navigate to any book and attempt to email, either to a device or a manually entered email address, or both
  3. Get error in logs instead

Debugging Information

2025-01-06T02:21:38.543847Z ERROR stump_server::routers::api::v1::emailer: Failed to send email, e: TemplateRegistrationFailed(TemplateError { reason: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" }, "base"), template_name: None, line_no: None, column_no: None, segment: None })
    at apps/server/src/routers/api/v1/emailer.rs:589

This is on 0.0.9 on Docker on an Ubuntu host.

@vorpalhex vorpalhex added the bug Something isn't working label Jan 6, 2025
@github-project-automation github-project-automation bot moved this to Backlog in v0.1.x Jan 6, 2025
@aaronleopold aaronleopold moved this from Backlog to Triage in v0.1.x Jan 6, 2025
@aaronleopold
Copy link
Collaborator

I'll be able to take a closer look tomorrow or Tuesday, but it might just be that I messed up including the default templates in the image.

If that is the case, placing the templates in the expected location should fix the issue

aaronleopold added a commit that referenced this issue Jan 6, 2025
Should resolve #549, and added supporting documentation
@aaronleopold aaronleopold moved this from Triage to In Progress in v0.1.x Jan 6, 2025
aaronleopold added a commit that referenced this issue Jan 7, 2025
Should resolve #549, and added supporting documentation
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
Status: In Progress
Development

No branches or pull requests

2 participants