kloon / WooCommerce-REST-API-Client-Library

A PHP wrapper for the WooCommerce REST API
GNU General Public License v3.0
356 stars 175 forks source link

Error: No route was found matching the URL and request method [woocommerce_api_no_route]' in woocommerce-api/class-wc-api-client-http-request.php:210 #207

Closed i-make-robots closed 7 years ago

i-make-robots commented 7 years ago

Was working until recently, then stopped with no explanation.

Fatal error: Uncaught exception 'WC_API_Client_HTTP_Exception' with message 'Error: No route was found matching the URL and request method [woocommerce_api_no_route]' in /home/droyer/public/marginallyclever.com/public/github-webhook/woocommerce-api/class-wc-api-client-http-request.php:210

The line that started it was $wc_api->products->update( $product_id, array('title'=>$name,'downloads'=>array(array('name'=>$name,'file'=>$newURL))));

wc_api and all the values being passed are valid. Has WC changed something to break this library?

i-make-robots commented 7 years ago

Never mind, replaced my copy of the API with the official WC API v1. http://woocommerce.github.io/woocommerce-rest-api-docs/?php#update-a-product