Closed markschellhas closed 4 years ago
I think the issue is related to your wordpress site instead of this module. This module is only the wrapper of axios.
@climba03003 Is there a way to know or find out? Can there be better error responses? If there was a wordpress site issue, meaning that WooCommerce isn't reachable via API, the response body wouldn't be returning a valid response (empty array), but an error (500 for example). Also all the other endpoints are working, so this seems strange that only the 'orders' endpoint has an issue (if it's a WP issue)?
Better error responses would really be helpful.
All of the result are comes from wordpress site ( even error message ). If the response is empty, you should check if any plugin have modify the woocommerce endpoint result. You should disable all the other plugin ( except woocommerce ) to see if the response still empty.
@climba03003 Thanks for the response, even though this is what I was hoping I would not have to do :) I'll close this issue now.
Appears empty when using the orders call. As you see, I get Satus, Headers (incl. vlaues "x-wp-total" and "x-wp-totalpages") but response.data is totally empty.
I've tried this "orders" endpoint using Postman and a straight axios implementation, both with Basic Auth and with keys as query params in the url, but on the /orders endpoint I'm always getting data empty.
NOTE: We've had this issue since 16 June. Then when I swapped out my axios implementation to using this module instead (woocommerce-rest-api) it worked for a couple of requests yesterday evening. But now it doesn't at all!
Are there API request limits? Please help as our app is down as a result of this.
Request
Response