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 = “”)
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