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

"errorType": "TypeError", "errorMessage": "Cannot read property 'authorizer' of undefined", "trace": [ "TypeError: Cannot read property 'authorizer' of undefined", #26

Closed
abhishek-appypie opened this issue Feb 24, 2022 · 3 comments

Comments

@abhishek-appypie
Copy link

abhishek-appypie commented Feb 24, 2022

what have i missed? so it's showing unauthorised error in get_account lambda function, can anyone help

@abhishek-appypie
Copy link
Author

abhishek-appypie commented Feb 24, 2022

"errorType": "TypeError",
"errorMessage": "Cannot read property 'authorizer' of undefined",
"trace": [
"TypeError: Cannot read property 'authorizer' of undefined",

const username = event.requestContext.authorizer.claims["cognito:username"];

@tbrand
Copy link
Contributor

tbrand commented Feb 27, 2022

Cloud you add console.log(event) before the line to debug the lambda event?

@tbrand
Copy link
Contributor

tbrand commented May 23, 2022

Let me close this issue. If you still have such problem, I'll reopen this.

@tbrand tbrand closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants