[API] PUT and POST return "501 Method not implemented" on http connection #9838
Comments
I bet that have something in your server changing it, like something in your |
I hope you are right, but it does not seem to be the case. I have asked my provider today, and they do not have any other rewrite or blocking rules running. |
Still can be have it in your apache config. |
You were right! Thank you so much - my hosting provider had a check in apache that prevented PUT requests. While they were digging into the issue they found out logging was not set up properly, and because of that the error did not show up in my logs. The PUT request was blocked by: |
Cool, tomorrow I'll add a note about it in our docs. Thanks. |
Note: 404 |
When trying to perform any PUT or POST command on the REST API (v3) over a http connection, the user receives a "501 Method Not Implemented" error.
The error occurs for instance on updating products (one product or in bulk) using the Python official library, cURL or the PHP library.
GET commands work as intended. Please note that the issue occurs even though the user credentials refer to an admin account, which has read/write access in the WooCommerce API.
The exact error message is:
PUT to /wc-api/v3/products/156 not supported.
(while 156 refers to a valid product id)
The text was updated successfully, but these errors were encountered: