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

amazon-cognito-identity-js : Cannot read property 'headers' of undefined #702

Closed
stripathix opened this issue Apr 20, 2018 · 9 comments
Closed
Labels
Cognito Related to cognito issues

Comments

@stripathix
Copy link

Do you want to request a feature or report a bug?
Report a bug

What is the current behavior?
This is an intermittent problem. While refreshing a session an error occured inside lib amazon-cognito-identit-js.

Error:
Cannot read property 'headers' of undefined

I was trying to refresh session to make sure that access token do not expire. No respose was returned, netither error was returned. Only error was logged in console.

This occured during below execution:
cognitoUser.refreshSession(refreshToken, function (err, refreshedSession) {});

Callback never executed.

@richardzcode richardzcode added the Cognito Related to cognito issues label Apr 20, 2018
@Fefbug
Copy link
Contributor

Fefbug commented Apr 23, 2018

Hi,
I think it will be fixed by #605

Best

@stripathix
Copy link
Author

@Fefbug when will this go to npm ?

@Fefbug
Copy link
Contributor

Fefbug commented May 11, 2018

@stripathix you can use amazon-cognito-identity-js 2.0.4 in npm beta (npm install amazon-cognito-identity-js@2.0.4

@manueliglesias Hi Could you push a new version of amazon-cognito-identity-js ?
aws-amplify still use the 2.0.3. Fix #706 and #605 has not been pushed

@boozedog
Copy link

@manueliglesias can you assist?

@boozedog
Copy link

@Fefbug do you know if there is anyone else who can help? @manueliglesias isn't responding

@jordanranz
Copy link
Contributor

Hi, sorry about the delay here.

I see the fix was merged and aws-amplify is using the newest version of amazon-cognito-identity-js

Are any of you guys still experiencing issues?

@stripathix
Copy link
Author

stripathix commented Jul 16, 2018

No. Looks good now. Not seen this bug in a long time. Thanks.

@jordanranz
Copy link
Contributor

Going to close this issue. Please reopen if you are still experiencing related issues.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Cognito Related to cognito issues
Projects
None yet
Development

No branches or pull requests

5 participants