IMPORTANT!
This forum is now archived. Click here for the New Support Forum
Execution Error
Quote from ceosjleong on February 2, 2018, 4:55 pmI encountered the following error message when try to execute the program. Pls advise and guide.
Regards
An error occurred while starting the application.
AggregateException: One or more errors occurred. (The Node invocation timed out after 60000ms.
You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions.The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.)
System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)
NodeInvocationException: The Node invocation timed out after 60000ms.
You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions.The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.
Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance+<InvokeExportAsync>d__13.MoveNext()
AggregateException: One or more errors occurred. (The Node invocation timed out after 60000ms. You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions. The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.)
System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)
Microsoft.AspNetCore.Builder.WebpackDevMiddleware.UseWebpackDevMiddleware(IApplicationBuilder appBuilder, WebpackDevMiddlewareOptions options)
QuickApp.Pro.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in
Startup.cs
- app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
NodeInvocationException: The Node invocation timed out after 60000ms. You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions. The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.
Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance+<InvokeExportAsync>d__13.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+<InvokeExportWithPossibleRetryAsync>d__10.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+<InvokeExportWithPossibleRetryAsync>d__10.MoveNext()
I encountered the following error message when try to execute the program. Pls advise and guide.
Regards
An error occurred while starting the application.
You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions.
The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.)
System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)
You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions.
The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.
Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance+<InvokeExportAsync>d__13.MoveNext()
-
AggregateException: One or more errors occurred. (The Node invocation timed out after 60000ms. You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions. The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.)
-
System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)
-
Microsoft.AspNetCore.Builder.WebpackDevMiddleware.UseWebpackDevMiddleware(IApplicationBuilder appBuilder, WebpackDevMiddlewareOptions options)
-
QuickApp.Pro.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in
Startup.cs
-
-
-
- app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
-
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
-
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
-
Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
-
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
-
-
-
NodeInvocationException: The Node invocation timed out after 60000ms. You can change the timeout duration by setting the InvocationTimeoutMilliseconds property on NodeServicesOptions. The first debugging step is to ensure that your Node.js function always invokes the supplied callback (or throws an exception synchronously), even if it encounters an error. Otherwise, the .NET code has no way to know that it is finished or has failed.
-
Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance+<InvokeExportAsync>d__13.MoveNext()
-
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
-
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
-
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+<InvokeExportWithPossibleRetryAsync>d__10.MoveNext()
-
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
-
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+<InvokeExportWithPossibleRetryAsync>d__10.MoveNext()
-
Quote from Eben Monney on February 3, 2018, 12:54 amPlease perform the below steps to try to address this timeout issue:
- Does this timeout error happen on a vanilla installation? Please test with a fresh copy of QuickApp to ensure the error is not caused by an unknown package
- Have you enabled "Server Side Rendering / Prerendering" in the template? If so please disable this and test again
- What version of node do you have? Run "node -v" on the command line to see the version and also to ensure the environment path for nodejs is set properly. You can also download the latest LTS version of node from here and install it to be sure: https://nodejs.org/en/
- You might also try restarting your computer to ensure there's no competition for resources as with timeout errors
- Lastly delete the node_modules folder and manually run "npm install" to re-download all client packages. Please ensure the package download process completes with no errors.
Please perform the below steps to try to address this timeout issue:
- Does this timeout error happen on a vanilla installation? Please test with a fresh copy of QuickApp to ensure the error is not caused by an unknown package
- Have you enabled "Server Side Rendering / Prerendering" in the template? If so please disable this and test again
- What version of node do you have? Run "node -v" on the command line to see the version and also to ensure the environment path for nodejs is set properly. You can also download the latest LTS version of node from here and install it to be sure: https://nodejs.org/en/
- You might also try restarting your computer to ensure there's no competition for resources as with timeout errors
- Lastly delete the node_modules folder and manually run "npm install" to re-download all client packages. Please ensure the package download process completes with no errors.
IMPORTANT!
This forum is now archived. Click here for the New Support Forum