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

Unhandled error if cookies disabled #52

Closed
foxbox-doug opened this issue Dec 12, 2022 · 3 comments
Closed

Unhandled error if cookies disabled #52

foxbox-doug opened this issue Dec 12, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@foxbox-doug
Copy link
Contributor

foxbox-doug commented Dec 12, 2022

What happened:

User attempted to log in with ad block. Error message in log is as follows:

User isn't authenticated: TypeError: Cannot read properties of undefined (reading 'flatMap')

What did you expect to have happen:

Error message in log indicating that no cookies were found rather than null reference exception.

How to reproduce this (as precisely and succinctly as possible):

Attempt to access protected content using an ad blocker that prevents cookies from being sent.

Anything else you think we should know?

N/A

Environment:

  • version of cognito-at-edge being used: 1.3.1
  • node version of code base which uses cognito-at-edge: 16.x
  • other:
@foxbox-doug
Copy link
Contributor Author

Looks like the actual issue is a timeout. I will extend the timeout to see if that resolves the issue.

@foxbox-doug
Copy link
Contributor Author

Underlying issue was timeout. Leaving this issue open until I can open a PR to resolve the null reference exception.

@foxbox-doug foxbox-doug changed the title 503 error if cookies disabled Unhandled error if cookies disabled Dec 12, 2022
@jeandek jeandek added the bug Something isn't working label Jan 10, 2023
@jeandek
Copy link
Contributor

jeandek commented Jan 10, 2023

Fixed by #53 .

@jeandek jeandek closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants