• Resolved SomewhatMedia

    (@somewhatmedia)


    Hi guys,

    We’re trying to connect with Vend (a POS system) via the REST API.

    We’ve created credentials and these appear to be working fine, however it’s not pulling products and orders over into Vend.

    We have used Postman to test the API keys that were created and got a 404 not found status for both product and order endpoints. The endpoints we used were /products and /orders.

    I’ve tried resaving permalinks as per troubleshooting documents but the issue still persists.

    I’ve spoken with Vend and they’re seeing the same – and are getting a 429 response which means it’s hitting an “attempt limit” according to Vend.

    Some guidance on how to proceed would be much appreciated.

    Best,
    Matt

Viewing 8 replies - 1 through 8 (of 8 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @somewhatmedia!

    Thanks for reaching out and reporting this issue with Vend POS.

    As a first step, you’d want to make sure this is not caused by a conflicting theme or plugin so we suggest performing a conflict test following this guide:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Also, you may need to check your .htaccess file on your hosting environment and make sure your system follows the recommended requirements:

    https://woocommerce.com/document/server-requirements/

    Let us know how it goes.

    Thread Starter SomewhatMedia

    (@somewhatmedia)

    Hi @rainfallnixfig

    Thanks for coming back to me.

    I’ve tested fully with a default theme and all plugins except WooCommerce enabled and the issue still persists. Everything is fully up-to-date.

    In terms of server environment, everything is marked as green, but specifics:
    PHP – 8.0.19
    MySQL – Maria DB 10.4.24
    PHP / WP Memory Limit – 256M
    Secure Connection: Activated

    The HTACCESS file is completely vanilla WordPress – no adjustments made at all.

    Best,
    Matt

    Hi @somewhatmedia

    Thanks for testing that and for sharing the info above.

    Are any fatal errors being generated when you attempt the connection? Please navigate to WooCommerce > Status > Logs and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error. Please let us know what you find.

    Thread Starter SomewhatMedia

    (@somewhatmedia)

    Hi @margaretwporg,

    There are no error logs in WooCommerce – just an empty testing log and an image regeneration log.

    Best,
    Matt

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @somewhatmedia

    Are you doing a PUT or GET request?

    Furthermore, what does your request look like? Are you using /wp-json/wc/v3/orders or wp-json/wc/v2/orders or something else? If you haven’t yet, try the v3 request and see if that makes a difference.

    Cheers!

    Thread Starter SomewhatMedia

    (@somewhatmedia)

    Hi @rynald0s

    I unfortunately don’t know the specifics of the requests being made as it’s an external system that has very limited visibility as to what’s going on. How would be best to obtain this data?

    I had to go through their support extensively for several days just to get the information about how they’re hitting 404 errors on the endpoints.

    Best,
    Matt

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @somewhatmedia

    Ok, so you mentioned that you are using Postman.

    We have used Postman to test the API keys that were created and got a 404 not found status for both product and order endpoints. The endpoints we used were /products and /orders.

    That is the request I am referring to. Similar to what you see here:

    https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API#making-a-basic-request

    Cheers!

    Thread Starter SomewhatMedia

    (@somewhatmedia)

    Hi @rynald0s

    I’ve just tested via Postman and I can access both endpoints completely fine. 200 Status with full data. Whereas they appear to be hitting 404 errors.

    Is there any reason an external service might be seeing a 404 error?

    Best,
    Matt

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘404 Error for endpoints’ is closed to new replies.