WordPress.org

Forums

WP REST API (WP API)
[resolved] Posting, returned errors error (5 posts)

  1. aryanduntley
    Member
    Posted 1 year ago #

    When attempting to create a post, if the user has not been authenticated, the errors are not displayed. Instead, in class-wp-json-posts, method newPost on line 209, if the returned value is not a string or integer, "instance of IXR_Error is bypassed and is sending the 500 instead. I should be getting the 400 error on line 720 of same file, but am instead getting the 500 in the last else of newPost on 209. Please check the instance of comparison.

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

  2. Ryan McCue
    Member
    Plugin Author

    Posted 1 year ago #

    This should be fixed as of #50. Can you confirm please? :)

  3. aryanduntley
    Member
    Posted 1 year ago #

    I have received no update notification via WP and the version remains 0.8 on the wp plugins page. Should I download again and replace manually (have you made the changes without and updated version #)? I'll download again and compare the files. (downloaded from github and see changes.) I've got to take care when swapping files in order to catch any conflicts with my api extensions that are already in place, and I'm currently vacationing in Thailand, so I'll get back to you when I can.

  4. Ryan McCue
    Member
    Plugin Author

    Posted 1 year ago #

    Version 0.9 has now been released; if you upgrade, you should see this now fixed. :)

  5. aryanduntley
    Member
    Posted 1 year ago #

    I did the upgrade when it came out. Internet is intermittent for me over here, and I have set aside work on the api (I'm interfacing a site with a mobile app)for later. I have no doubt that you fixed this, but just for confirmation, when I get back to it, I will test and report on this thread. Thanks for the work and this plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP REST API (WP API)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.