I am using Core 3.1 Version with Angular and I am having some trouble with the error modal which is shown when an Exception get's thrown in an application service. To avoid it, i used the second callback parameter of the subscribe method where i handle the exception. It works perfectly in the DEV environment, but when i publish it to production i always get the error modal, no matter if i provide a callback or not.
I build my angular-app with ng build --prod --base-href=/<app-name>/
I also tried using the local DEV build of the angular app with the backend production environment, and this also worked as intended - no error modal. This makes me think the error has to be somewhere in the angular project or in it's production build.
Thank you in advance!
9 Answer(s)
-
1
What version of the accplication are you using, ASPNetZero 10.5? Or something older?
-
0
In this project i am using the non-zero version with .NET Core 3.1 and Angular
-
0
can you open the package.json file in the angular solution and tell me what "version" it lists?
-
0
-
0
-
0
The current version is 10.5 and I think they're close to releasing v11.0 they are using angular version +12.1
There is a chance what you're talking about was an issue but that has likely since been corrected over past 4-5 years (looks like version 4.6 was around June 2017)
Check https://github.com/aspnetzero/aspnet-zero-core to see if there is an issue opened for that failure or upgrade to 10.5
-
0
Hi @jhess
Is your app publicly accessible ?
-
0
No unfortunately it's just accessible inside the local network
-
0
Hi @jhess
Can you please share the places where you made code changes? If you can share your codes, we can reproduce it.
Also to check that issue, can you please create a sample endpoint that throws an exception. Then consume it from your angular application which you place debugger. And check what is going on.