-
Notifications
You must be signed in to change notification settings - Fork 519
Node invocation timeout on startup #589
Comments
What errors are you seeing in the debug console in Vscode or vstudio ? |
No, I don't use setInterval or similar. It's only really happens on a first load to node, not subsequent loads. It's rare I hit it locally so I can't double check the debug console right now but I don't think there's much else there of note. However here's a sample of my logs from the app deployed to IIS.
|
Is your project based on one of the
Node on its own never sleeps (and the NodeService package doesn't shut it down once it's started, except if the process has to be recycled because a source file changed, which wouldn't happen in production). If you're finding that your Node process gets shut down and has to restart, then I expect that must be because the parent (.NET) process itself is getting shut down. So it's somewhat beyond the control of any code in Node.js/NodeServices. If you keep your ASP.NET process alive, then the child Node process will stay alive too. |
Yes, that's what I'm using. That does sound like my issue, I'll modify my project to match the latest method when I get the chance. Thanks |
I have the same problem. I created a Angluar 4 + ASP.NET Web core 2 project on VS2017 and it works fine on a machine where it is created. But when the repo is cloned on another machine and app is started I get this error. I tried on one more machine and it is the same error. My Index.html looks like @SteveSandersonMS `@{ Loading... <script src="~/dist/vendor.js" asp-append-version="true"></script>@section scripts { |
In My case resolution was (windows machine): |
I've deployed my app to Azure and often when hitting it for the first time I get a "NodeInvocationException: The Node invocation timed out after 60000ms." exception. I've done some testing and have also hit this when deployed to IIS. I could increase the InvocationTimeoutMilliseconds property but is there a way to prevent node from 'sleeping' similar to the IIS Idle Timeout setting as I would prefer to have a faster first time load for users.
(here's the full exception)
The text was updated successfully, but these errors were encountered: