supabase.auth.resetPasswordForEmail causes timeout in Next.js server action

I'm using Supabase cloud with Next.js. I set up a DB trigger on auth.users to call an edge function so I can send auth emails using an external provider. According to my email provider logs, emails have been sent until Jan 13. My debug log output in Next.js shows that supabase.auth.resetPasswordForEmail() is called, but does not finish within the 10s Next.js timeout. According to Supabase logs, the edge functions is never called. The setup works as expect (<1s total function execution) on localhost. any ideas? thanks!
1 Reply
elektrosteve
elektrosteveOP8mo ago
Update: I increased the timeout, now I'm at least able to log the error I receive from the call to supabase.auth.resetPasswordForEmail(): AuthRetryableFetchError, status: 504, code: undefined The issue is that Ethereal Email is down which I am using as a dummy SMTP so emails don't get sent

Did you find this page helpful?