• Resolved simonmassie

    (@simonmassie)


    Hello,

    I have been facing a critical issue with my WooCommerce REST API for the past two days. None of the API requests (POST, PUT, or GET) are working, and I keep receiving the following response:

    {
    “errors”: [
    {
    “code”: “woocommerce_api_no_route”,
    “message”: “No route was found matching the URL and request method”
    }
    ]
    }
    `

    I am using Hostinger Cloud Hosting, and despite extensive troubleshooting, the problem persists. Here’s what I’ve done so far to attempt to resolve the issue:

    1. I left the site raw, with only WooCommerce and the default WordPress theme installed.
    2. I ensured the WooCommerce REST API keys are correct, and all necessary permissions are in place.
    3. I tested the requests using Postman and confirmed that the URL and methods are correct.
    4. I have already updated the permalinks and checked the .htaccess file, but the issue remains unsolved.

    Given that I have tried everything I could think of, and the problem continues, I am reaching out to see if there is any specific configuration issue or something I might be missing related to WooCommerce or the API routes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter simonmassie

    (@simonmassie)

    and

    {
        "code": "rest_no_route",
        "message": "No route was found matching
        the URL and request method ", 
        "data": {
            "status": 404
        }
    }
    Plugin Support Reynier (a11n)

    (@reynierc)

    Hi @simonmassie ,

    I see you’re having trouble with the WooCommerce REST API giving a “No Route Found” error for all requests. It sounds like the API endpoints might not be correctly registered or there could be a conflict with your WordPress permalinks settings.

    To move forward, please go to your WordPress dashboard, navigate to Settings → Permalinks, and just save the changes again, even if you don’t make any changes. This can often refresh the permalinks structure and solve the issue.

    If the problem persists, please check if you have any security plugins that might be blocking the REST API routes and temporarily deactivate them to see if that’s the cause.

    Let us know how it goes.

    Thread Starter simonmassie

    (@simonmassie)

    Obviously I wrote to you that I updated the permalinks a lot and also deactivated all the plugins and the problem was not solved

    Plugin Support Reynier (a11n)

    (@reynierc)

    Hi @simonmassie ,

    Thanks for your reply. I understand you’ve already updated permalinks and disabled all plugins with no luck. It could be an issue with the server configuration. Could you please reach out to your hosting provider, Hostinger, and verify if they have any rules blocking REST API requests?

    Also, ask them to check if the mod_rewrite module is enabled on your server as this is essential for the REST API to function correctly. Note that only the host can confirm server-side configurations like mod_rewrite and potential security rules that might affect the API.

    Please keep us posted on what they say.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hello! Since it’s been a while without a response, I’ll consider this resolved. Feel free to get in touch anytime to continue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.