Angular 8 APP_INITIALIZER Timeout has occurred
See original GitHub issueDescribe 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:
- Open Stackblitz example
- 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
APP_INITIALIZER - Angular
If any of these functions returns a Promise or an Observable, initialization does not complete until the Promise is resolved or the Observable...
Read more >Angular (v5) service is getting constructed before ...
I have created a fork where I added delay to the observable and you can clearly see that the application waits for the...
Read more >Angular How to use APP_INITIALIZER - TekTutorialsHub
In This tutorial, we look what is APP_INITIALIZER is and how to use in Angular applications. We will show you how to use...
Read more >18 Performance Optimization Techniques For Angular ...
For example, since it has a higher timeout, it is more suitable for the rendering of data lists. Low – Work that is...
Read more >How does APP_INITIALIZER work? So what do you need to ...
When we develop an application designed to run on multiple environments, we have to decide how to provide a configuration of appropriate variables...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 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.