Error in Node 10.13.0 - More tasks executed then were scheduled
See original GitHub issueThis 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
- clone https://github.com/ahce/applicationinsightsBug
- npm install
- npm start or npm run start:watch
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >
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 Free
Top Related Reddit Thread
No results found
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

Thanks! Don’t have a fix to share yet, but it looks like an incompatibility between
restifyandzone.js(at least the version ofzone.jswe currently use). You can avoid the error in the meantime by usingsetAutoDependencyCorrelation(false)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