jQuery $.getJSON: "Failed to load resource: cancelled"

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2011-01-18T10:58:48Z Indexed on 2012/09/15 21:38 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

I'm having problem loading a json resource from a local rails app with jQuery 1.4.4

The json is valid (based on jsonlint.com) and I can download it properly if I'm requesting it from other sources.

In webkit (Safari), I got this error:

Failed to load resource: cancelled

Response Header on Firebug:

Content-Type application/json; charset=utf-8
Set-Cookie geoloc=toulouse; path=/;
Connection close
Server thin 1.2.7 codename No Hup

jQuery code to load json:

$.getJSON("http://127.0.0.1/search_agenda",
  {'edition': edition,
  'categories': categories},
  function(data){
    console.log(data);
  }
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX