weird sign-in error: 'null failed with error Generate callenges lambda cannot be called.'
See original GitHub issueThis 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:
[DEBUG] 14:29.772 AuthClass - signIn failure:
code: "UnexpectedLambdaException"
message: "null failed with error Generate callenges lambda cannot be called.."
name: "UnexpectedLambdaException"
[DEBUG] 14:29.773 Analytics - on hub capsule auth:
data:
code: "UnexpectedLambdaException"
message: "null failed with error Generate callenges lambda cannot be called.."
name: "UnexpectedLambdaException"
event: "signIn_failure"
I am mapping the error to something more meaningful for the user as a workaround for now.
if(/null.*error/.test(message)) { return "Incorrect username or password"; }
Issue Analytics
- State:
- Created 5 years ago
- Reactions:26
- Comments:30 (1 by maintainers)
Top Results From Across the Web
How do I troubleshoot Lambda function failures?
When I try to invoke my AWS Lambda function, it fails and returns an error. How do I troubleshoot Lambda function failures?
Read more >Challenge solutions - Pwning OWASP Juice Shop
Provoke an error that is neither very gracefully nor consistently handled. Any request that cannot be properly handled by the server will eventually...
Read more >The worst mistake of computer science
In 1965, Sir Tony Hoare introduced the null reference. Fifty years later, we look at its drawbacks, its presence, and the better way....
Read more >User authentication with AWS Cognito: The good, the bad ...
Cognito treats a Google Login with “waschi@gmail.com ” as a totally different account (as ... And worst: You can make a lot of...
Read more >Formula Parse Errors In Google Sheets And How To Fix ...
It can be frustrating, especially if it's a longer formula where the formula parse error may not be obvious. In this post, I'll...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d definitely call this a bug. In a world where password managers are becoming increasingly common, a form has to support copy/paste.
Same here +1