Getting net::ERR_BLOCKED_BY_CLIENT error on some AJAX calls
AdBlockers usually have some rules, i.e. they match the URIs against some type of expression (sometimes they also match the DOM against expressions, not that this matters in this case).
Having rules and expressions that just operate on a tiny bit of text (the URI) is prone to create some false-positives...
Besides instructing your users to disable their extensions (at least on your site) you can also get the extension and test which of the rules/expressions blocked your stuff, provided the extension provides enough details about that. Once you identified the culprit, you can either try to avoid triggering the rule by using different URIs, report the rule as incorrect or overly-broad to the team that created it, or both.
Check the docs for a particular add-on on how to do that.
For example, AdBlock Plus has a Blockable items view that shows all blocked items on a page and the rules that triggered the block. And those items also including XHR requests.
Failed to load resource in chrome google.maps api
This type of errors are mostly due to an extension like Ad-block plus. Try disabling it for that website and that should fix that issue. You can also look at this question:
I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
Is it possible to catch net::ERR_BLOCKED_BY_CLIENT?
Unfortunately you cannot catch that error message specifically, but you can catch the error itself:
$.ajax({
url: 'http://openx.net',
dataType: 'json',
success: function( data ) {
console.log( "Success:", data);
},
error: function( data ) {
console.log( "Error:", data);
}
});
Obviously the example isn't requesting JSON, but you can see that it fails and calls the error handler.
These errors are fired by Chrome when, for instance, a plugin like Adblock (as you mentioned) cancels a request.
Related Topics
Operation Could Destabilize the Runtime
How to Find Reason for Generic Gdi+ Error When Saving an Image
Start New Process, Without Being a Child of the Spawning Process
Gmail Smtp via C# .Net Errors on All Ports
Popup's in Selenium Webdrivers
Using Mediaelement to Play Video from Stream
System.Net.Http: Missing from Namespace? (Using .Net 4.5)
How to Connect to ASP.NET Development Server Issue
The Process Cannot Access the File Because It Is Being Used by Another Process
Add Two Lists of Different Length in C#
System.Web.Httpcontext.Current.User.Identity.Name VS System.Environment.Username in ASP.NET
How to Unmask Password Text Box and Mask It Back to Password
Implicit Conversion Issue in a Ternary Condition
Elevating Privileges Doesn't Work with Useshellexecute=False