You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the auth SMTP settings are wrong/invalid in the Supabase dashboard and the auth.resetPasswordForEmail(...) function is invoked, it throws an AuthRetryableFetchException. This kind of AuthException is very generic and not helpful at all.
To Reproduce
Steps to reproduce the behavior:
Go to the supabase dashboard and use invalid SMTP credentials
invoke the auth.resetPasswordForEmail function
AuthRetryableFetchException is thrown
Expected behavior
I would expect the function to return an Exception that tells the client what is gone wrong. Examples would be a InvalidSMTPCredentials or more generic a ServerException with an error message.
Expected behavior
The following code inside this repository is responsible for this:
Additional context
With debugging, I found out that under the hood the following json is returned by the server in my case: {"code":500,"error_code":"unexpected_failure","msg":"Unable to process request","error_id":"87968bc5f6e035ed-FRA"}
The text was updated successfully, but these errors were encountered:
Describe the bug
When the auth SMTP settings are wrong/invalid in the Supabase dashboard and the
auth.resetPasswordForEmail(...)
function is invoked, it throws anAuthRetryableFetchException
. This kind ofAuthException
is very generic and not helpful at all.To Reproduce
Steps to reproduce the behavior:
auth.resetPasswordForEmail
functionAuthRetryableFetchException
is thrownExpected behavior
I would expect the function to return an Exception that tells the client what is gone wrong. Examples would be a
InvalidSMTPCredentials
or more generic aServerException
with an error message.Expected behavior
The following code inside this repository is responsible for this:
supabase-flutter/packages/gotrue/lib/src/fetch.dart
Line 36 in 4f5b853
Version:
????????? supabase_flutter 2.5.1
??? ????????? supabase 2.1.1
??? ??? ????????? functions_client 2.0.0
??? ??? ????????? gotrue 2.6.0
??? ??? ????????? postgrest 2.1.1
??? ??? ????????? realtime_client 2.0.4
??? ??? ????????? storage_client 2.0.1
Additional context
With debugging, I found out that under the hood the following json is returned by the server in my case:
{"code":500,"error_code":"unexpected_failure","msg":"Unable to process request","error_id":"87968bc5f6e035ed-FRA"}
The text was updated successfully, but these errors were encountered: