Skip to content

UnknownException with "SignedOutException" on iOS devices #6172

Open
@ruossn

Description

@ruossn

Description

Hi,

We are frequently seeing the following error in our logging tool:

UnknownException {
  "message": "unable to send GraphQLRequest to client.",
  "underlyingException": "SignedOutException {
    \"message\": \"No user is currently signed in\"
  }"
}

This issue occurs almost exclusively on iOS devices. We know that this error can happen, for example, if an account has been deleted or if the refresh token has expired. However, in these cases, we have confirmed that this is not the situation for the affected iOS users.
Because of this, we suspect there may be a bug in the iOS implementation of Amplify.

The error is triggered when we attempt to execute a GraphQL query or mutation that requires an authenticated user. In our code, we only perform these operations when we have a valid user profile. This profile is only obtained and stored after a successful sign-in, so we are certain that the user was previously signed in.

For some reason, Amplify appears to "lose" the user on iOS, even though the user had been authenticated earlier.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

The issue happens sporadically, so unfortunately, we haven't been able to determine a consistent cause or find a way to reliably reproduce it.

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.27.2

Amplify Flutter Version

2.6.1

Deployment Method

AWS CDK

Schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to the Auth Categorypending-community-responsePending response from the issue opener or other community membersquestionA question about the Amplify Flutter librariesto-be-reproducedIssues that have not been reproduced yet, but have reproduction steps provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions