-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on JSDisconnectedException and TaskCancelledException crashing app #395
Comments
Very interesting. Reproducible demo could help fix faster. Maybe you have one? |
Hey, sorry for the slow response here! I got ill and was away from work. I don't have a reproducible demo unfortunately and I'm not skilled enough to throw something together quickly. JSDisconnectedException is a bit tricky because it happens when the circuit breaks between the browser and server, not sure how/if that can be reproduced in a demo? |
Just random though. I was going through some component and saw that they handle JSDisconnectedException explicitly. |
What is random do you mean? That they handle JSDisconnectedException or that it is thrown? I searched in the code there, looks like they handle it consistently throughout. In BlazorGoogleMaps I notice it's catched at one place:
There's also this comment:
|
Random i mean that i just found on internet and i wanted to share. Not sure if it could be helpfull. Your examples in dispose method which happens when you leave page/component. In you case it could happen while you are one the page. |
Hi! We've suddenly found our application crashing due to various exceptions, two of which relate to BlazorGoogleMaps. IIS manages to restart things but we want to avoid crashes of course.
We use Blazor's ErrorBoundary to globally catch unexpected exceptions, but apparently these slip through somehow. From reading online, ErrorBoundary doesn't seem too reliable atm. So, we decided to wrap any calls using BlazorGoogleMaps in try-catch statements just to be on the safe side of things. We were just wondering though, should this be handled within the package itself? And, did anyone else see these kinds of issues?
These are picked up by Windows Event Viewer, they aren't showing up in our own log files:
JSDisconnectedException:
TaskCancelledException:
These examples concern MarkerList, but we see it for PolylineList and PolygonList as well.
The text was updated successfully, but these errors were encountered: