Note that there are some explanatory texts on larger screens.

plurals
  1. POFirebug AJAX Request Aborted - No Response Body or Headers (Same Domain)
    text
    copied!<p>I'm trying to make an AJAX request with <code>dataType: "json"</code> and I'm Firebug keeps showing the request as "aborted."</p> <pre><code>POST http://mydomain.com/path/to/page Aborted </code></pre> <p>This is the snippet:</p> <pre><code>var postData = "someVar=someValue&amp;otherVar=otherValue", msg; $.ajax({ type: "POST", url: "/path/to/page", data: postData, dataType: "json", cache: false, success: function(response) { if (typeof response.row != undefined) { $('#my-select') .append($('&lt;option&gt;&lt;/option&gt;') .attr("value", response.row.id) .text(response.row.name) ); msg = response.msg; } else { msg = 'failed'; } alert(msg); }, error: function(xhr, status, thrown) { // EDIT 1 alert(status); // &lt;-- It's alerting "timeout" } }); </code></pre> <p>Incidentally, I read a bunch of questions on this site of people with similar issues, but may of them turned out to be very specific. One was because the request was too large, another was because they were requesting to another domain, etc etc.</p> <p>I get <strong>no response headers</strong> and <strong>no response body</strong>.</p> <p>Here are my request headers (simplified):</p> <pre><code>Host mydomain.com User-Agent Firefox/8.0.1 Accept application/json, text/javascript, */*; q=0.01 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip, deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 DNT 1 Connection keep-alive Content-Type application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With XMLHttpRequest Referer http://mydomain.com/path/to/page Content-Length 125 Cookie PHPSESSID=somerandomstring </code></pre> <p>Nothing shows up in the Apache error_log. I navigated manually to that page in the browser and I didn't get any errors (just a white screen and some text).</p> <h3>NOTE: This works on my localhost but not on the testing server.</h3> <p><strong>Edit</strong>: Added <code>error()</code> callback and it's alerting "timeout."</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload