Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug a failed ajax request in google chrome?

Tags:

I have a web application that crashes on ajax requests with google chrome (it works with every other web browser it was tested it). After debugging I found that the error is caused by response.responseText being undefined. The xhr object looks like this:

argument: undefined isAbort: false isTimeout: undefined status: 0 statusText: "communication failure" tId: 3 

In debugger in the 'network' tab I get "(failed)", however all the headers are there and I can even copy into clipboard the response body (which is a valid JSON).

My question is - how can I debug this problem? Where to find additional information, what causes this request to fail?

like image 729
zefciu Avatar asked Jun 26 '12 07:06

zefciu


People also ask

How do I debug AJAX in Visual Studio?

In Visual Studio, if you start your application for debugging (by pressing F5 or using the Start Debugging command in the Debug menu), the debugger is attached automatically. You can also attach the Visual Studio debugger to Internet Explorer when the application is already running.


1 Answers

I finally found the solution to my problem : AdBlocks, when it blocks an ajax request, it just says "communication failure".

like image 130
Korri Avatar answered Sep 28 '22 09:09

Korri