question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Magic Link Error - AWS account has been paused

See original GitHub issue

Bug 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

  1. Try to login or sign up using a magic link.
  2. Click submit to send the magic link.
  3. Note the magic link is not sent
  4. 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
w3b6x9commented, Aug 29, 2021

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.

3reactions
tinjawcommented, Aug 29, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve Amazon SES sending account review or pause
If your account's ability to send email is paused, then you can't use Amazon SES to send emails until you resolve the problem...
Read more >
Resolve issues signing in to your AWS console
Resolving issues with your account​​ If your account has been closed for more than 90 days, your sign-in information no longer exists. To...
Read more >
Reactivate a suspended AWS account
If your account is suspended due to outstanding charges, you can reinstate your account by paying all past due charges in the Billing...
Read more >
Troubleshooting Agent Issues - Application Migration Service
When the installation of the AWS Replication Agent on a source server fails during the running of the Installer file, you will receive...
Read more >
Troubleshooting sign-in issues - AWS Documentation
Provides tutorials on how to address sign-in and account management issues like a forgotten password, resetting an MFA device, and how to contact...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found