-
Notifications
You must be signed in to change notification settings - Fork 12
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
Failed to send notification, Error Code: undefined #64
Comments
Hej @vsmart-duo - super excited to see you try it out :) The error you see is likely due to SMTP not being able to send anything (I'm assuming here that it has no configuration at all). The magic link is logged beforehand via debug, try clicking the link that's logged here:
|
If using just the default configuration, you will also need to use one of the predefined user emails here: const sampleUsers: User[] = [
{
name: "User",
sub: "user@localhost", // Must be the same as sub provided by IdentityProvider for authz to work
mail: "user@localhost",
},
{
name: "Reviewer",
sub: "reviewer@localhost",
mail: "reviewer@localhost",
},
{
name: "Admin",
sub: "admin@localhost",
mail: "admin@localhost",
},
]; Otherwise I believe the app will not permit you in due to authz issues - the app will attempt a user lookup on the email address, then fail if it doesn't find it. |
yes, that worked! 🎉 |
Cool, let me know if you find any further issues. I think you're the first to actually try this out - so I appreciate the testing 😄 |
Hey @Tethik and team! Very exciting that Gram is open source now 🙌
I tried following the Getting Started guide. The app started successfully but then I got stuck at the Login screen. When trying the "login via magic link" button, I got this error. I tried with 2 different email addresses:
[2023-11-07T14:28:04.172] [ERROR] NotificationSender - Failed to send notification 1: SMTP Error Code: undefined. See https://github.com/eleith/emailjs/blob/main/smtp/error.ts
Full error log here, emails and tokens redacted:
The text was updated successfully, but these errors were encountered: