aws-samples / simple-nft-marketplace

This project provides sample codes to build a simple NFT marketplace with Amazon Managed Blockchain.
MIT No Attribution
95 stars 48 forks source link

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

Closed abhishek-appypie closed 2 years ago

abhishek-appypie commented 2 years ago

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

abhishek-appypie commented 2 years ago

"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 commented 2 years ago

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

tbrand commented 2 years ago

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