Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter catalin.oanca

    (@catalinoanca)

    I must have been tired because I skipped on the rule number 1 of debugging: deactivate all other plugins to make sure there’s no conflict.
    In this case the REST API was restricted and wpdatatables couldn’t reach it.

    As a feature request, it would’ve been nice to have better error reporting or at least a debug mode to find out why the JSON wasn’t accepted. The JSON was fine, the problem was the plugin didn’t evaluate the JSON but instead the array below.

    Array
    (
    [code] => rest_cannot_access
    [message] => DRA: Only authenticated users can access the REST API.
    [data] => Array
    (
    [status] => 401
    )

    )

    Plugin Author wpDataTables

    (@wpdatatables)

    Hello there

    Thank you for letting us know the issue is resolved. Also, thanks for the suggestion!

    It will be forwarded to our development team, so they can include it in one of our next updates.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘REST API JSON not working’ is closed to new replies.