• I’m trying to setup Threadreader to post to my blog. The instructions are found here: https://www.patreon.com/posts/37591240

    I have both the IndieAuth (3.5.0) and the MicroPub (2.2.2) plugins installed.I’m running WordPress version 5.5 and both plugins are up to date.

    When I test here, I get prompted for a login, and it works as expected: https://indieauth.com (Scroll down to the Try it form.)

    But, when I test the same thing on Treadreader, I get this:
    {“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}

    When I look at the server logs, I notice significant differences between the two requests.

    IndieAuth
    “POST /wp-login.php?client_id=https%3A%2F%2Findieauth.com%2F&redirect_uri=https%3A%2F%2Findieauth.com%2Fauth%2Find
    ieauth%2Fredirect&state=0fa997183894c018d5ee8bf97e0d04b3&me=https%3A%2F%2Fwww.tx
    antimedia.com%2F&response_type=id&action=indieauth HTTP/1.1” 302 –
    “POST /index.php?rest_route=/indieauth/1.0/auth HTTP/1.1” 200 40

    Threadreader
    “GET /index.php?rest_route=/indieauth/1.0/auth?client_id=https%3A%2F%2Fthreadreaderapp.com&me=https%3A%2F%2Fwww.txantimedia.com%2F&redirect_uri=https%3A%2F%2Fthreadreaderapp.com%2Fmicropubs%2Fcallback&response_type=code&scope=create&state=4485 HTTP/1.1” 404 116

    You’ll notice that the IndieAuth requests come in as POST requests but the Threadereader requests is a GET request. Furthermore, the Threadreader request appears (to me) to never attempt to login.

    So, is this a problem with Threadreader’s setup? Or is it a problem with my site?

    Note: when I got to https://www.txantimedia.com/wp-json/ I get a 404. I don’t know if this is a problem or not.

    • This topic was modified 4 years, 6 months ago by txantimedia.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rest Routes

    (@wp-making)

    Hello @txantimedia,

    For me, it looks like a problem with the authenticator plugin, not your site.

    Thread Starter txantimedia

    (@txantimedia)

    You mean the IndieAuth plugin? Any thoughts on why it works on the IndieAuth test? It looks to me like Threadreader isn’t sending a correct request. I’ve contacted their support, but they havne’t yet responded.

    Thread Starter txantimedia

    (@txantimedia)

    After a lengthy chat on the WordPress chat room at IndieAuth, it appears the problem is that Threadreader is sending a query with two question marks in it. I’ve asked Threadreader support for a response.

    I tested the site with Quil and I was able to post to the blog, so the plugins appear to be working as expected.

    Plugin Author Rest Routes

    (@wp-making)

    @txantimedia thanks for letting us know. I invite you to check the benefits of the PRO version, it is getting better and better on each release: https://restroutes.com/pricing/

    Thread Starter txantimedia

    (@txantimedia)

    I appreciate that, but frankly, I wouldn’t even know what to do with it.

    Plugin Author Rest Routes

    (@wp-making)

    @txantimedia ok. Just keep the plugin in mind for when you need to create complex custom routes for WP REST API without touching a single line of PHP code.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Competely confused on REST API’ is closed to new replies.