Error 504 when trying to send password reset email - JS Client

I have a website hosted by DailyRazor that connects to Supabase. While the website is in the development, I am running it on my own PC for testing. I've looked at the docs, asked AI, scanned the console output, and verified the database logs. I found nothing strange or helpful. My guess is the issue is incorrect SMTP settings. I opened a ticket with DailyRazor to get their SMTP settings. I'll put their response in a comment below. My Supabase SMTP settings are in a comment below. The JS that gets the email address to send the link to is:
const email = document.getElementById('email').value.trim()
const email = document.getElementById('email').value.trim()
The JS code that tells Supabase to send the email is:
const { error } = await supabase.auth.resetPasswordForEmail(email, { })
const { error } = await supabase.auth.resetPasswordForEmail(email, { })
The HTML code for the body of the page that gets the email address:
<body>
<header></header>
<main>
<form id="reset-form">
<input type="email" id="email" placeholder="you@example.com" required />
<button type="submit">Send reset link</button>
</form>
<div id="msg"></div>
</main>
<footer></footer>
</body>
<body>
<header></header>
<main>
<form id="reset-form">
<input type="email" id="email" placeholder="you@example.com" required />
<button type="submit">Send reset link</button>
</form>
<div id="msg"></div>
</main>
<footer></footer>
</body>
7 Replies
Atelerix Albiventris
DailyRazor's response:
Please find below settings:

A) Kindly use pop3 Port 995 or IMAP port 993
B) Under Encryption method please select SSL/TLS instead of STARTTLS
C) Further instead of using domain name in Server section you can use Server name as well which is eldz2.dailyrazor.com

Secure SSL/TLS Settings (Recommended)
Username: @domain name
Password: Use the email account's password.
Account type: POP3
Incoming Server: eldz2.dailyrazor.com
POP3 Port: 995
Outgoing Server: eldz2.dailyrazor.com
SMTP Port: 465
make sure: - My outgoing server (SMTP) requires authentication is checked.
Please find below settings:

A) Kindly use pop3 Port 995 or IMAP port 993
B) Under Encryption method please select SSL/TLS instead of STARTTLS
C) Further instead of using domain name in Server section you can use Server name as well which is eldz2.dailyrazor.com

Secure SSL/TLS Settings (Recommended)
Username: @domain name
Password: Use the email account's password.
Account type: POP3
Incoming Server: eldz2.dailyrazor.com
POP3 Port: 995
Outgoing Server: eldz2.dailyrazor.com
SMTP Port: 465
make sure: - My outgoing server (SMTP) requires authentication is checked.
My Supabase SMTP settings:
Sender email: noreply@sjbguildgearexchange.com
Sender name: St. Joseph Business Guild Gear Exchange
Host: eldz2.dailyrazor.com
Port number: 465
Minimum interval between emails being sent: 15
Username: noreply@sjbguildgearexchange.com
Password: [the password I entered when I set up the noreply inbox]
Sender email: noreply@sjbguildgearexchange.com
Sender name: St. Joseph Business Guild Gear Exchange
Host: eldz2.dailyrazor.com
Port number: 465
Minimum interval between emails being sent: 15
Username: noreply@sjbguildgearexchange.com
Password: [the password I entered when I set up the noreply inbox]
silentworks
silentworks2w ago
Check your Supabase auth logs to see if there are any errors. https://supabase.com/dashboard/project/_/logs/auth-logs
Atelerix Albiventris
Yeah, I've gone through them I don't see anything helpful. Whenever I get the 504 error, two events appear in the logs: /recover | request completed and /recover | 504: Processing this request timed out, please retry after a moment. the 504 event message:
"{\"auth_event\":{\"action\":\"user_recovery_requested\",\"actor_id\":\"af74059a-cb6b-4ab6-aa4b-ebe5ed02e949\",\"actor_username\":\"email@example.com\",\"actor_via_sso\":false,\"log_type\":\"user\"},\"component\":\"api\",\"error\":\"context deadline exceeded\",\"level\":\"error\",\"method\":\"POST\",\"msg\":\"504: Processing this request timed out, please retry after a moment.\",\"path\":\"/recover\",\"referer\":\"http://localhost:3002/\",\"remote_addr\":\"ip-addr\",\"request_id\":\"98e068b3e1e5f566-LAX\",\"time\":\"2025-10-13T17:03:42Z\"}"
"{\"auth_event\":{\"action\":\"user_recovery_requested\",\"actor_id\":\"af74059a-cb6b-4ab6-aa4b-ebe5ed02e949\",\"actor_username\":\"email@example.com\",\"actor_via_sso\":false,\"log_type\":\"user\"},\"component\":\"api\",\"error\":\"context deadline exceeded\",\"level\":\"error\",\"method\":\"POST\",\"msg\":\"504: Processing this request timed out, please retry after a moment.\",\"path\":\"/recover\",\"referer\":\"http://localhost:3002/\",\"remote_addr\":\"ip-addr\",\"request_id\":\"98e068b3e1e5f566-LAX\",\"time\":\"2025-10-13T17:03:42Z\"}"
Atelerix Albiventris
metadata: https://pastebin.com/ELKnBrQC password: jsltown
Pastebin
Pastebin.com - Locked Paste
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
silentworks
silentworks2w ago
If this is sensitive information, it should not be posted here. Also I don't visit third party links for code or logs snippets, they can be inlined here.
Atelerix Albiventris
It's too long. I censored sensitive info. I was able to send an email through DailyRazor using the terminal, so the problem is definitely related to Supabase.
silentworks
silentworks2w ago
Don't know what DailyRazor is, but the issue is likely authentication with your email provider. I would suggest using tried and tested providers like Resend or Brevo.

Did you find this page helpful?