Skip to content

Sentry reports AuthException(message: AuthRetryableFetchError, statusCode: null) #928

Closed as not planned

Description

@RCVZ

Describe the bug
Sentry reports multiple AuthRetryableFetchError's.
Some logs show that the user was switching from foreground <-> background
All of the reports are on iOS(But those are like 99% of my users)

To Reproduce
I have not been able to reproduce this with one of my own devices.

Version:
supabase_flutter 2.5.2
supabase 2.1.2
functions_client 2.1.0
gotrue 2.6.1
postgrest 2.1.1
realtime_client 2.0.4
storage_client 2.0.1

Stacktrace:

AuthException(message: AuthRetryableFetchError, statusCode: null)
  App                 0x10af72518  GotrueFetch._handleRequest (fetch.dart:137)
  File "<asynchronous suspension>"
  App                 0x10af722c8  GotrueFetch.request (fetch.dart:88)
  File "<asynchronous suspension>"
  App                 0x10af718c4  GoTrueClient._refreshAccessToken.<T> (gotrue_client.dart:1062)
  File "<asynchronous suspension>"
  App                 0x10af716e8  RetryOptions.retry (retry.dart:131)
  File "<asynchronous suspension>"
  App                 0x10af714a0  GoTrueClient._refreshAccessToken (gotrue_client.dart:1054)
  File "<asynchronous suspension>"
  App                 0x10af711e4  GoTrueClient._callRefreshToken (gotrue_client.dart:1160)
  File "<asynchronous suspension>"
  App                 0x10af71090  GoTrueClient._autoRefreshTokenTick (gotrue_client.dart:1042)
  File "<asynchronous suspension>"
  App                 0x10af70ee4  GoTrueClient.startAutoRefresh (gotrue_client.dart:1011)

Activity

  1. added
    bug
    on May 14, 2024
  2. added
    auth
    on May 14, 2024
  3. dshukertjr commented on May 14, 2024

    @dshukertjr
    Member

    This likely means that the user opened the app when the device wasn't connected to the internet and the SDK failed to refresh the session. We could probably improve the error message or something to be more obvious.

  4. changed the title [-]Sentry reports AuthRetryableFetchError[/-] [+]Sentry reports AuthException(message: AuthRetryableFetchError, statusCode: null)[/+] on May 14, 2024
  5. RCVZ commented on Jun 10, 2024

    @RCVZ
    Author

    I just had this error on login(signInWithIdToken) during local dev development. I'm on a stable wifi connection.

  6. AshishAcharya083 commented on Jul 2, 2024

    @AshishAcharya083

    any solution for this ?

  7. RCVZ commented on Jul 25, 2024

    @RCVZ
    Author

    @dshukertjr When is this issue going to be fixed? 3 months have already passed!

  8. revtut commented on Jul 31, 2024

    @revtut

    I'm getting the same error on Crashlytics. Any idea on how to catch this exceptions so that the application does not crash?

    Fatal Exception: FlutterError
    AuthException(message: AuthRetryableFetchError, statusCode: null)
              Fatal Exception: FlutterError
    0  ???                            0x0 GotrueFetch._handleRequest + 137 (fetch.dart:137)
    1  ???                            0x0 GotrueFetch.request + 88 (fetch.dart:88)
    2  ???                            0x0 GoTrueClient._refreshAccessToken.<fn> + 1046 (gotrue_client.dart:1046)
    3  ???                            0x0 RetryOptions.retry + 131 (retry.dart:131)
    4  ???                            0x0 GoTrueClient._refreshAccessToken + 1038 (gotrue_client.dart:1038)
    5  ???                            0x0 GoTrueClient._callRefreshToken + 1144 (gotrue_client.dart:1144)
    6  ???                            0x0 GoTrueClient._autoRefreshTokenTick + 1026 (gotrue_client.dart:1026)
    
  9. RCVZ commented on Aug 13, 2024

    @RCVZ
    Author
  10. github-actions commented on Mar 1, 2026

    @github-actions
    Contributor

    This issue has been inactive for 180 days.
    It will be automatically closed in 30 days if there is no further activity.

    If you believe this issue is still relevant, please leave a comment to keep it open.
    Thank you for your contributions!

  11. github-actions commented on Apr 5, 2026

    @github-actions
    Contributor

    This issue was automatically closed due to inactivity.

    If you believe this is still relevant, feel free to reopen it or create a new issue with updated information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staleauthbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions