Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on AuthCategory.getCurrentUser() #3725

Closed
Ankish opened this issue May 29, 2024 · 4 comments
Closed

Crash on AuthCategory.getCurrentUser() #3725

Ankish opened this issue May 29, 2024 · 4 comments
Labels
auth Issues related to the Auth category question General question

Comments

@Ankish
Copy link

Ankish commented May 29, 2024

Describe the bug

Crash on AuthCategory.getCurrentUser()

Steps To Reproduce

Cant reproduce always

Expected behavior

Should not crash on simple getuser

Amplify Framework Version

2.34.1

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

5.10

CLI version

aws-amplify-cli/2.0

Xcode version

15.3

Relevant log output

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


No log present, crash in production
```

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

ios 17.5

Device

iPhone 13

Specific to simulators

No response

Additional context

com.getter_738711ca2cdf94375b7a5cc6aeff47b2_crash_session_423c5b5477ca40378e8cb31c63926c2c_DNE_0_v2_stacktrace.txt
Screenshot 2024-05-29 at 10 46 28 AM

@5d
Copy link
Contributor

5d commented May 29, 2024

Thanks for submitting the issue. We will investigate further and provide updates here.

@5d 5d added auth Issues related to the Auth category pending-triage Issue is pending triage and removed pending-triage Issue is pending triage labels May 29, 2024
@5d
Copy link
Contributor

5d commented May 29, 2024

According to the log, this is expected behavior and indicates a precondition failure. Your app has set more than two authentication plugins.

@5d 5d added the question General question label May 29, 2024
@harsh62
Copy link
Member

harsh62 commented Jun 25, 2024

Closing the issue as it seems to be a problem with how Amplify was setup. Please follow Amplify documentation to setup the project correctly.

@harsh62 harsh62 closed this as completed Jun 25, 2024
Copy link
Contributor

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth category question General question
Projects
None yet
Development

No branches or pull requests

3 participants