-
Notifications
You must be signed in to change notification settings - Fork 518
An unhandled exception occurred while processing the request #1234
Comments
Hi @chamikasandamal - could you please post specific repro steps? If I create a new Angular project, what are the minimal code changes that result in this issue? |
It seems following line of codes cause the issue. I had to check
Seems this can be consider as not a bug, but let's make error messages more meaningful. |
You have to really be careful with setTimeouts and setIntervals because one will slow down your server render, while the other will cause it to never render, as it's waiting for all tasks to finish. Make sure you wrap these in inPlatformBrowser calls. More info here: |
Glad you tracked this down. As for the error message, when running in dev environment, normally you will get the exact error message rather than the generic "The connection with the server was terminated abnormally". If you did get the generic message when running in dev mode, do you have repro steps for that? Because it is supposed to give the underlying exception info in that case. |
I'm using dotnet core sdk 2.0 SPA template for angular. when running the application, i can see following error. This issue is there when it running through visual studio 2017 as well as when it published to azure.
But when i switch off the pre-rendering by removing
asp-prerender-module="xxx"
, it is working fine.Note: I'm using organizational account authentication
The text was updated successfully, but these errors were encountered: