Capturing ERR_CONNECTION_REFUSED error in Ajax calls

Hi,

Upon an “ERR_CONNECTION_REFUSED” error in an Ajax operation, the error handler is called (either locally to the ajax call or registering the “onAjaxError” global handler).

However, all the times the XMLHttpRequest (xhr) object doesn’t seem to contain any info about the error (i.e.: xhr.status = 0 and xhr.statusText = “”)

How can I capture it and show the error details?

Thanks

I am using Windows 8.1 64 bits and also had the same problem (“ERR_CONNECTION_REFUSED”) that only happened on Google Chrome. On clicking on the “Detail” on the right of the error message, the problem lies with “127.0.0.1”, in my case. So I went to the settings and opened “Manage search engines …” box in the Search section, and while scrolling down, I saw that “Google Desktop, 127.0.0.1” was made a “Default”, so I switched over to Google as the default. Hope that might be of any help.
ERR_CONNECTION_REFUSED – Solutions Encyclopedia

I found a webpage from which i get rid out of this type of error issue, now you can also check this once for

getting rid of it completely from here: [SOLVED] NET ERR_CONNECTION_REFUSED Error Problem

Just copy chrome://settings/clearbrowserData and past into browser.
now hit enter and clear browsing data.
Now simply restart and enjoy.
You can try this for more ways.
https://www.gizpc.com/err_spdy_protocol_error/
https://www.howtoseeks.org/err_spdy_protocol_error/
thanks

to resolve this error click https://techrubik.com/err_spdy_protocol_error-reason-solution/