1
votes

Rest API was giving results but suddenly it stops giving result and giving me this error instead:

"code": "woocommerce_rest_cannot_view", "message": "Sorry, you cannot list resources.", "data": { "status": 401 }

I'm using oAuth1 with the correct key and secret. Using this version "WordPress 5.4.2" and "WooCommerce 4.4.1".

1
The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly.snorlax

1 Answers