-
Couldn't load subscription status.
- Fork 165
Closed
Description
I am encountering authentication issues while trying to access the WooCommerce REST API over HTTP in a local development environment. The API consistently returns a 401 Unauthorized error, indicating a problem with the authentication process.
{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}
i checked and change ck_your_consumer_key:cs_your_consumer_secret is ok but i got error.
i use wordpress in mac xampp with PHP 8.3
$this->client = new Client(
$this->baseUrl,
$this->ck,
$this->cs,
[
'wp_api' => true,
'version' => 'wc/v3',
'timeout' => 0
]
);
Metadata
Metadata
Assignees
Labels
No labels