hey all, i'm getting this error when i try to call...
# help
g
hey all, i'm getting this error when i try to call supabase.auth.signup(): {message: 'The upstream server is timing out', status: 504}
n
Hello @gel! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
two errors now, anyone know a solution?
s
Try restarting your database server.
n
gel (2022-04-20)
l
we’ve done that, it doesn’t fix it
this is very urgent @silentworks
s
Please open a support ticket https://app.supabase.io/support/new
g
similarly, we're getting the same error with magic links:
we've opened a ticket already but if anyone knows a temporary workaround that'd be great
s
Do you have a trigger you are running on signup?
@gel ^
g
hey, yes we are
basically just adding the user to a profiles table. was working perfectly before yesterday for a long time
@silentworks disabling the triggers still throws the error
signIn() is now breaking
s
@gel can you share the trigger code here?
I would suggest disabling all of your triggers, restart the server and see if you are still getting the same result
If you aren't getting the same error then start adding back your triggers one by one to see where it starts breaking again
g
same errors with those steps, but signin is working again. signup throws the same errors
s
Can you share in the ticket that you opened the trigger functions you are running on signUp?
g
{message: 'An invalid response was received from the upstream server', status: 502}
getting this now
s
I'm not sure if you saw my message above or not
l
we located the source of the problem
everything works if we turn smtp off
but we hadn’t changed anything
i tried to re enable and it stops working
do you know if it’s SSL or TLS encryption?
i ask bc google suggests checking off Secured Connection using TLS https://support.google.com/domains/answer/9437157?hl=en
s
@libovness are you using Google as your SMTP provider?
l
we were, but i switched to sendgrid and things are working now
s
Yeah, Google would probably restrict email sending after seeing their service being used for bulk email sending, which would have caused the issue.
2 Views