GSMA-CPAS / BWRP-UI

Apache License 2.0
1 stars 0 forks source link

Handling of net::ERR_NETWORK_CHANGED on the client side #82

Open akafazov opened 3 years ago

akafazov commented 3 years ago

This error happens intermittently in the web frontend:

image

The error is caused by OS network interface being switched while a request has not finished processing (waiting for reply). This is usually caused by device switching between WIFI, VPN, LAN connections or network connection being unstable. Although there is nothing the client can do to prevent the error, we can improve the handling of it.

Suggestion: implement a retry logic, which automatically retries a request several times if it is caused by net::ERR_NETWORK_CHANGED. If all retries have been exhausted, then this error can be shown to the user. Also, we can put some more details in the popup dialog.

ldudzinski01 commented 3 years ago

One could attempt to avoid this problem by using only one kind of connectivity e.q. to abandom VPN. Nonetheless, each time one should check if chosen connectivity is stable i.e. not receiving the error. Hope this help.