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
weird sign-in error: 'null failed with error Generate callenges lambda cannot be called.' #1538
Comments
facing same issue for cognito login functionality |
Still the same on : |
Seeing the same issue here on v1.0.5 |
Still seeing this on 1.1.6-unstable.2, Unable to use passwordless login. |
Facing this issue as well |
+1 |
Has anyone else seen or dealt with this issue? I have a pretty plain setup with the amplify authenticator component and the apple App Store reviewers are getting this error message :/ I cannot duplicate it for the life of me or figure out next steps. I've tested ipv6, simulators, devices, etc. Works perfectly for me but the apple App Store reviewers can't seem to login at all. Using Cognito, standard username and password workflow (with sms verification on account creation) |
+1 |
1 similar comment
+1 |
Same here +1 |
The challenge happens after you create a new user and the new user has to create a new password. If they type a blank temporary password, this happens. It also happens when you change your password value. |
I hope this helps someone, I just posted in #2537 once you manually enter your username in, and try to paste in your password... you run into @goatandsheep helped me put two and two together with his last post. When you copy paste into the component, either username or password, it isn't working. You have to manually input them. It thinks it is blank if you copy and paste and will throw the error. IMHO a bug. hope this helps someone. |
I'd definitely call this a bug. In a world where password managers are becoming increasingly common, a form has to support copy/paste. |
+1 |
Encountering this issue for custom application. During sign up process for my app, two scenarios can happen:
|
@henhen87 instead of giving them a blank password, can you send a random initial password to their email? |
@goatandsheep I do not think that will work, because the user is already signed up at this point with a Password associated with their account; they are just not verified. So if I try to Auth.signIn() and pass a wrong password, it will probably give a wrong password error. |
Stumbled into this bug as well today I use the i18n module to translate the error to a human understandable error message. |
Still an issue. +1 |
Just hit this too. Valid user name, blank password, vanilla implementation of amplify auth using Cognito. "@aws-amplify/auth": "^1.2.19",
"@aws-amplify/ui": "^1.0.18",
"aws-amplify-react": "^2.3.3", |
So I'm not sure if I can speak for the other parts of the package, but here's some info and findings from debugging the The issue: Only a Line 35 in cdcdb69
To solve it: Personally, I had some other issues with the UI of the plugin that I had to curb a couple weeks ago, so I made my own customized UI, based off the Amplify code, but just so I could tinker with the styling, input field naming, etc a little easier. Angular can handle I changed the form to be Template-Driven, which handles the input changes and events firing better than what's in the code already. Maybe there's a reason why it's neither model bound or reactive, but meh. Lastly, I suggest the same for now as @stefan-lz suggested to suppress the terrible error:
Will see if I can get the time and add a PR into this project to get this sorted... |
There's another form of this, manifests as What this means is that you forgot to assign a trigger to the Create Challenge Lambda on the Cognito pool. Sheesh. |
@Wintereise I created empty lambda (it test execution is succeeded):
And attached it to Update: set this empty lambda to Define Auth Challenge and now I see another output: |
Your output format is wrong (empty string is not acceptable), see the Cognito event declaration to learn how they need to be. |
I'm also getting this error when trying to initiate a passwordless user auth by calling I'm using |
Also happens when the Took me some time to find out. |
I'm facing the same problem as henhen87. My code is roughly:
This error always occurs if Auth loses context (i.e. navigate away from page and come back to confirm later). User is still authenticated despite the error being thrown. What is the appropriate way to handle allowing a user to confirm their email at a later time? |
@stefan-lz Are you still experiencing this issue on the latest version of Amplify? Please let us know |
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
This occurs when a valid user is signing in with a blank password (we're using a custom sign-in react component)
"aws-amplify": "1.0.6",
"aws-amplify-react": "1.0.6"
Window debug messages:
I am mapping the error to something more meaningful for the user as a workaround for now.
The text was updated successfully, but these errors were encountered: