Continuous web socket.io error in browser console

Hello All,

I am facing an error as shown in the attached screenshot. The dashboard and charts are not loaded due to the error and continuous error captured in the chrome browser console as shown in the screenshot.

The strange thing is that it working perfectly locally using LAN IP. But when accessing it over the internet using public IP it gives the said error.

I have checked so many earlier discussed topics in the forum but none helped me to resolve the issue. The supervisorctl status command shows all processes in running mode.

I guess there is some nginx.conf settings is causing problem but i could not figure it out. My nginx.conf file snippet for socket.io request as below:

location /socket.io {
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header X-Frappe-Site-Name MY-ERPNEXT-SITE-NAME;
                proxy_set_header Origin $scheme://$http_host;
                proxy_set_header Host $host;

                proxy_pass http://erpnext-socketio-server;
        }

There is no error in the error.log file of Nginx. I am using ERPNext version 13-beta4.

Struggling from few days. Any help would be appreciated. Thanks.

Hello All,

The issue has been resolved.

Below is the solution for someone struggling like me for the issue:

The issue was from our corporate firewall end. There were some request drops were observed by our network infrastructure team. By-passing all the rules set in firewall did the job.

Thanks.