question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 8 APP_INITIALIZER Timeout has occurred

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leonardochaiacommented, Jul 26, 2019

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

0reactions
leonardochaiacommented, Aug 28, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found