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

Exception while singing in #592

Closed
AboulEinein opened this issue Jun 29, 2020 · 4 comments
Closed

Exception while singing in #592

AboulEinein opened this issue Jun 29, 2020 · 4 comments
Assignees
Labels
auth Issues related to the Auth category bug Something isn't working

Comments

@AboulEinein
Copy link

Describe the bug
I'm getting an exception when trying to sign in using username and password.
The signIn function receives nil when retrieving the user from the user pool, which results in Thread 12: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) exception
In file AWSMobileClientExtensions.swift line 190

Here's the content of my awsconfiguration.json

{
    "UserAgent": "aws-amplify/cli",
    "Version": "0.1.0",
    "IdentityManager": {
        "Default": {}
    },
    "CognitoUserPool": {
        "Default": {
            "PoolId": "POOL_ID",
            "AppClientId": "CLIENT_ID",
            "AppClientSecret": "SECRET",
            "Region": "REGION"
        }
    },
    "Auth": {
        "Default": {}
    }
}
{
    "UserAgent": "aws-amplify-cli/2.0",
    "Version": "1.0",
    "auth": {
        "plugins": {
            "awsCognitoAuthPlugin": {
                "UserAgent": "aws-amplify/cli",
                "Version": "0.1.0",
                "IdentityManager": {
                    "Default": {}
                },
                "CognitoUserPool": {
                    "Default": {
                        "PoolId": "POOL_ID",
                        "AppClientId": "CLIENT_ID",
                        "AppClientSecret": "SECRET",
                        "Region": "REGION"
                    }
                },
                "Auth": {
                    "Default": {}
                }
            }
        }
    }
}

To Reproduce
Steps to reproduce the behavior:
Follow the steps in iOS Authentication guide - https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment(please complete the following information):

  • Amplify Framework Version: 1.0.2
  • Dependency Manager: CocoaPods
  • Swift Version: 5.2
  • Xcode Version: 11.5
  • Amplify CLI version: 4.22.0

Device Information (please complete the following information):

  • Device: Simulator
  • iOS Version: iOS 13.5
@palpatim
Copy link
Member

@AboulEinein We believe we've discovered the bug and are working on a fix now.

@ahmedAlmasri
Copy link

I have the same issue

@royjit
Copy link
Contributor

royjit commented Jul 1, 2020

We have released a new version which should fix the issue. Could you please try out the latest release 1.0.4 - https://github.com/aws-amplify/amplify-ios/releases/tag/v1.0.4

@royjit royjit added the closing soon This issue will be closed in 7 days unless further comments are made. label Jul 1, 2020
@AboulEinein
Copy link
Author

@royjit I just tested it and it's working. Thank you!

@drochetti drochetti removed the closing soon This issue will be closed in 7 days unless further comments are made. label Jul 6, 2020
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 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants