Skip to content

Angular 8 APP_INITIALIZER Timeout has occurred #587

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

Closed
leonardochaia opened this issue Jul 24, 2019 · 5 comments
Closed

Angular 8 APP_INITIALIZER Timeout has occurred #587

leonardochaia opened this issue Jul 24, 2019 · 5 comments

Comments

@leonardochaia
Copy link
Contributor

Describe the bug
Timeout has occurred is thrown when attempting to perform an HTTP call on an Angular APP_INITIALIZER most likely due to changes from #515
Find below a Stackblitz reproducing the issue:
Stackblitz example

To Reproduce
Steps to reproduce the behavior:

  1. Open Stackblitz example
  2. View console errors
    Expected logs
error loading discovery document
Error: Timeout has occurred
Error: Timeout has occurred
Error: Timeout has occurred

Expected behavior
Expected the discovery document to have been loaded

Desktop (please complete the following information):

  • Chrome Version 75.0.3770.142 (Official Build) (64-bit)
  • Angular v 8.1.2
  • angular-oauth2-oidc v8.0.1
@manfredsteyer
Copy link
Owner

Thanks. Please see #589 for the solution.

@leonardochaia
Copy link
Contributor Author

Cool thanks. @manfredsteyer where's the code that fixes it?
I don't see any new PR nor commit with related changes.

@leonardochaia
Copy link
Contributor Author

Excuse me, @manfredsteyer can you point me to the code that fixes this issue since I don't seem to find it in the repository.
NPM version do not match the code version on GitHub

@ggjersund
Copy link

@leonardochaia I had some problems installing it via npm in the ordinary fashion, I believe its related to some cache problems with npm's new self cache cleaning. If you have some similar problems try force installing npm install angular-oauth2-oidc@latest --save --force.

@leonardochaia
Copy link
Contributor Author

@ggjersund I didn't have problems installing via NPM.
My concern, is that the current version of the code in this repository does not match the current code being distributed via NPM.

Current NPM version is 8.0.4, and this repository code version is on 8.0.1

I'm not even going to say my opinion about #515 or about the "fix", which I could see by comparing the JS from NPM.

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

3 participants