Magic Link Error - AWS account has been paused
See original GitHub issueBug report
Describe the bug
Magic link email does not send, and returns an error in the logs, stating the AWS account has been paused.
Checking the logs in the Supabase dashboard (Authentication > Settings > Logs), there is an error message that reads:
time="2021-08-29T00:21:24Z" level=error msg="500: Error sending magic link" component=api error="Error sending magic link email: gomail: could not send email 1: 554 Message rejected: Sending paused for this account. For more information, please check the inbox of the email address associated with your AWS account." method=POST path=/magiclink referer="http://localhost:3000/" remote_addr=XXXXXXXXX request_id=c88db66d-18a5-4786-aa5a-314a2b33b547
It seems this might be related directly to Supabase’s AWS account, and not my specific Supabase account.
To Reproduce
My Supabase Infrastructure settings are:
- AWS
- us-east-1
The snippet I have been using for login is:
const handleLogin = async (email) => {
try {
setLoading(true)
const { error } = await supabase.auth.signIn({ email })
if (error) throw error
alert('Check your email for the login link!')
} catch (error) {
alert(error.error_description || error.message)
} finally {
setLoading(false)
}
}
The alert in the catch fires, and reads: Error sending magic link
- Try to login or sign up using a magic link.
- Click submit to send the magic link.
- Note the magic link is not sent
- Check logs in Authentication > Settings > Logs, note failure message
Expected behavior
The magic sign up link will be emailed, and a success message with be displayed instead of the error message.
Screenshots
System information
- OS: mac OS
- Chrome, Safari
- Version of supabase-js: 1.21.0
- Version of Node.js: 14.17.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Thank you everyone for bringing this to our attention!
We are actively trying to sort this out and will post an update here as soon we bring our email server back online.
In the meantime, you can use mailgun/sendgrid/third party provider, go to https://app.supabase.io/project/[YOUR_PROJECT_REF]/auth/settings, and set it under
Enable Custom SMTP
to continue sending auth-related emails.Glass half-full !! This was the impetus I needed to finally get my mailgun account set up properly.