WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
JSON API requests work locally but not on server (3 posts)

  1. npavkovic
    Member
    Posted 3 years ago #

    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/

  2. dphiffer
    Member
    Plugin Author

    Posted 3 years ago #

    Hi npavkovic,

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

    Thanks,
    -Dan

  3. dphiffer
    Member
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags