You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When refreshing or leaving window the window.beforeunload event if fired. This leads Performance.batch object to call flush method, that calls XMLHttpRequest.send. As browser closes (or leaving) the window, this request is being cancelled.
In this situation Firefox throws error "Error: [Traceo SDK] Cannot send data to Traceo Platform. Make sure the application is running. Caused by: TypeError: NetworkError when attempting to fetch resource." that is being caught by traceo and sent to traceo server.
Google Chrome just silently cancels request with no errors emitted.
The text was updated successfully, but these errors were encountered:
AlexeyBarsuk
changed the title
Browser cancels XMLHttpRequest.send(...) on window.beforeunload event
traceo-sdk-browser. Browser cancels XMLHttpRequest.send(...) on window.beforeunload event
Oct 11, 2024
When refreshing or leaving window the window.beforeunload event if fired. This leads Performance.batch object to call flush method, that calls XMLHttpRequest.send. As browser closes (or leaving) the window, this request is being cancelled.
In this situation Firefox throws error "Error: [Traceo SDK] Cannot send data to Traceo Platform. Make sure the application is running. Caused by: TypeError: NetworkError when attempting to fetch resource." that is being caught by traceo and sent to traceo server.
Google Chrome just silently cancels request with no errors emitted.
The text was updated successfully, but these errors were encountered: