• Resolved dvdlbrecht

    (@dvdlbrecht)


    Hi, I’m trying to connect PirateShip to WooCommerce. I’ve opened a ticket with PirateShip and they suggested there is an issue with my installation. I am self-hosting with the standard LEMP stack, with a fairly new install of WP 5.4.2 and WC 4.3.2.

    In my server logs, I see the PirateShip connection come in ok (HTTP 200s), then PirateShip tries to redirect browser to a nonexistent API route:

    GET /index.php?rest_route=/wc/v1/wc-auth/v1/authorize?...<truncated>...

    This GET gives me a 404, and in my browser I see a JSON object that says “rest_no_route”.

    Furthermore, if I look at all the available API routes at /wp-json/wc/v1, I don’t see anything for wc-auth. I can’t find anything in the WC docs about this endpoint either. The only trace of it I’ve found on the WC website is at this URL, which returns Page Not Found.
    https://docs.woocommerce.com/wc-apidocs/class-WC_Auth.html

    I am using Nginx and have a feeling there may be an issue with the request rewrites, but I also find it odd that there is literally no information about the /wc/v1/wc-auth endpoint online.

    Can someone assist with pointing me in the right direction for how to continue troubleshooting? I’m not sure where to look next since PirateShip is saying it’s a configuration issue but the API endpoint they’re sending me to doesn’t exist.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Just to check, why are you using a super old version of the REST API? I’m asking as V1 was deprecated in WooCommerce 3.0. For what it’s worth, the V1 REST API docs are available at https://woocommerce.github.io/woocommerce-rest-api-docs/wp-api-v1.html#rest-api-keys.

    To use V3, have a look at the following: https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction

    Thread Starter dvdlbrecht

    (@dvdlbrecht)

    RK, thanks a lot for answering my question! I had thought that it was PirateShip that was sending me to the old API, but it was actually a rewrite function in my Nginx configuration that was rewriting PirateShip’s request.

    I tried for quite awhile yesterday to figure out the correct Nginx configuration to allow access to the WordPress and WooCommerce API, but all my attempts failed. I ended up reinstalling my site using Apache instead, which has much better out of the box support for WordPress’s API.

    Hopefully this is helpful for someone in the future!

    Plugin Support mouli a11n

    (@mouli)

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic and we’ll be happy to help out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing Endpoint: rest_route=/wc/v1/wc-auth/v1/authorize’ is closed to new replies.