Skip to content

AuthError: Service error #3910

@micaeloliveira-void

Description

@micaeloliveira-void

Describe the bug

We are verifying some occurrences of AuthError: Service error.
We started facing this problem on version 2.35.3 of Amplify-ios and after updated to version 2.43.0 this is still happening.
When opening the app and dealing with the normal behavior for Auth Services (the fetchAuthSession) we sometimes get a Service Auth Error.
We also noticed this error occurring with the Logout (the signOut), even thought the Logout works as it should we sometimes get this error.

Steps To Reproduce

Steps to reproduce the behavior:
1. Opening the App
2. App deals with Auth Service (the `fetchAuthSession`)
3. This Service Error might be returned

Or

1. Logout user
2. App deals with Auth Service (the `signOut`)
3. This Service Error might be returned

Expected behavior

As expected behavior we shouldn't get a Service Auth Error.

Amplify Framework Version

2.43.0

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

5.10

CLI version

Xcode version

15.4 and also 16.0

Relevant log output

<details>
<summary>Log Messages</summary>


INSERT LOG MESSAGES HERE
```

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

Logs for >= iOS 16.7.10

Device

Logs for iPhone 8, X, 12, 12 Pro

Specific to simulators

No response

Additional context

We have some Logs retrieving this:

Get access token failed with error: AuthError: Service error occurred
Recovery suggestion: There is a possibility that there is a bug if this error persists. Please take a look at https://github.com/aws-amplify/amplify-ios/issues to see if there are any existing issues that match your scenario, and file an issue with the details of the bug if there isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to the Auth categorybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions