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.

Error in Node 10.13.0 - More tasks executed then were scheduled

See original GitHub issue

This error doesn’t happen in node 8.


C:\[Your_Path]\node_modules\applicationinsights\out\AutoCollection\Exceptions.js:33
                        throw error;
                        ^
Error: More tasks executed then were scheduled.
    at AppInsightsAsyncCorrelatedErrorWrapper.ZoneAwareError (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:811:33)
    at new AppInsightsAsyncCorrelatedErrorWrapper (C:\[Your_Path]\node_modules\applicationinsights\out\AutoCollection\CorrelationContextManager.js:182:18)
    at ZoneDelegate._updateTaskCount (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:310:23)
    at ZoneDelegate.cancelTask (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:297:22)
    at Zone.cancelTask (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:174:44)
    at zoneAwareRemoveListener (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1153:28)
    at C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1266:9
    at process.removeListener (eval at createNamedFn (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1207:17), <anonymous>:3:41)
    at process.on (domain.js:151:13)
    at process.emit (events.js:187:15)
    at process.EventEmitter.emit (domain.js:442:20)
    at _addListener (events.js:211:14)
    at process.prependListener [as __zone_symbol__prependListener] (events.js:266:14)
    at Object.invokeAddFunc (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1065:48)
    at ZoneTask.scheduleEventListener [as scheduleFn] (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1092:21)
    at ZoneDelegate.scheduleTask (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:255:26)
    at Zone.scheduleEventTask (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:171:39)
    at zoneAwareAddListener (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1137:14)
    at C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1266:9
    at process.prependListener (eval at createNamedFn (C:\[Your_Path]\node_modules\zone.js\dist\zone-node.js:1207:17), <anonymous>:3:42)
    at process.on (domain.js:152:13)
    at process.emit (events.js:187:15)

Environment:

  • OS: Windows 10 Pro 1809
  • Node: 10.13.0
  • Applicationinsights: 1.0.7

Steps to Reproduce

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
OsvaldoRosadocommented, Nov 26, 2018

Thanks! Don’t have a fix to share yet, but it looks like an incompatibility between restify and zone.js (at least the version of zone.js we currently use). You can avoid the error in the meantime by using setAutoDependencyCorrelation(false)

1reaction
markwolffcommented, Feb 6, 2019

Thanks for confirming @faridhajnal. You can also update to the latest version (1.1.0) where this is fixed so that you do not need to disable dependency correlation

Read more comments on GitHub >

github_iconTop Results From Across the Web

tasks executed then were scheduled. Using XMLHttpRequest ...
Error : More tasks executed then were scheduled. Using XMLHttpRequest. open in Angular 2 - Stack Overflow. Stack Overflow for Teams – Start ......
Read more >
Gulp errors after upgrading SPFx version
1 to 4.0.2 but still having issues. The error I get is shown below. Any ideas? Error: More tasks executed then were scheduled....
Read more >
Supported node versions for self-hosted installs of Ghost
Self-hosted installs of Ghost are recommended to use the supported node versions to ensure you don't run into any common errors. Find out...
Read more >
The Difference Between Node.js 10 LTS and Node.js 12 LTS
For unhandled error events with an argument that is not an Error object, the resulting exeption will have more information about the ...
Read more >
Node JS 10.13.0 - Chocolatey Software
Version Downloads Last Updated Status Node JS 19.3.0 4584 Wednesday, December 14, 2022 Waiting for Maintainer Node JS 19.2.0 23071 Wednesday, November 30, 2022 Approved Node...
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 Reddit Thread

No results found

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