Support » Plugin: JSON API » JSON API requests work locally but not on server

  • Greetings,

    Some newbie stumbling here. I’m making simple JSON API calls using jQuery, and they work flawlessly when on my local machine. Example:

    $.getJSON("http://www.bettervallejo.org/?json=1&cat=5&include=url,attachments",{},
    		function(jfeed,themsg)
    		{ ... });

    The same calls fail when run from a .js file on the server… They appear to time out, and while the processing function is called, the variable jfeed is null. In Firebug, the status of these calls is listed as “301 Moved Permanently”. That would seem to be an error. Does it have something to do with my shared hosting?

    Thanks, in advance,
    Nick

    http://wordpress.org/extend/plugins/json-api/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dphiffer

    (@dphiffer)

    Hi npavkovic,

    Sorry for the extremely slow reply! Did you ever resolve this? Is there a public URL you could post here?

    Thanks,
    -Dan

    Plugin Author dphiffer

    (@dphiffer)

    Oh wait, sorry the URL is right there! It’s coming back 200 for me, so maybe this got resolved?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JSON API requests work locally but not on server’ is closed to new replies.