question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

weird sign-in error: 'null failed with error Generate callenges lambda cannot be called.'

See original GitHub issue

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:

[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:closed
  • Created 5 years ago
  • Reactions:26
  • Comments:30 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
jernejciccommented, Feb 7, 2019

I’d definitely call this a bug. In a world where password managers are becoming increasingly common, a form has to support copy/paste.

4reactions
cbartramcommented, Jan 19, 2019

Same here +1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found