504 error when using supabase auth
Getting 504 error when trying to confirm email with supabase auth. I'm able to signup a user anon, but trying to get the email confirmation setup in order to more securely sign in users. I'm using deep link but right now I can't even get the email to send without a 504 error. I'm attempting to test this on my iOS simulator, since I don't believe I can test this locally in Expo Go. Very stuck right now any assistance is appreciated!
I've tried changing the site url to com.supabase, and my url link to practicepro:// (which is what my console.logs show is the correct URL), and it made no difference
Disabled RLS policies as well and no difference either
I attached the log from the 504 error in API Gateway
17 Replies
Check the auth logs and see if there is an email provider error.
504 is timeout.
Also try sending an email from the dashboard.
Heres the event message
how do I send email from the dashboard? I tried googling but couldn't find anything about that
Go to authentication tab and create user. Send Invitation.
So either your SMTP is timing out (that might be in the detail) or the DB did (but I would expect a 500 DB error.
Are you using any auth hooks?
I attempted to send a magic link for the new user and it says this
This was from the supabase dashboard
So it is not your app then.
What provider are you using?
provider? It's a react native expo app if that's what you mean, supabase is my backend/database
SMTP email provider?
Are you using a custom one?
I'm sorry I'm not sure how to find this out, I'm new to mobile app development and supabase auth
i followed the supabase auth tutorial to set authentication up in my app
I

So if you can provide the auth log detail message.
Also see if there is an error in the Postgres log at same time.
You did not say if you have an auth hook you wrote and enabled.
SMTP email provider is custom, i have a free plan as well (maybe that's the issue?)
this is the auth log
no error from Postgres log
I'm not sure if I have an auth hook (so probably don't..), first time I'm hearing about it
I believe your email provider is timing out or not responding.
You could switch back to the built in one and do the invite from the dashboard to see.
oh wow, I disabled custom SMTP and it worked
I'll go and investigate why the custom one times out then, thanks for your time
if you have any other suggestions from your experience let me know, I'm off to go research this though!
Just out of curiosity. Which custom provider are you using?
I’m using resend now, I didn’t know I had to use a specific provider prior to this
You don't have to use a specific one.
I use Brevo.
You don’t. I wanted to check which one was not working to test and understand the error.