admin管理员组文章数量:1122846
When requesting the test API, getting the following response:
{
"errors": [
{
"error_code": "",
"error_message": "Sorry, you cannot list resources."
}
]
}
The credentials are OK, REST API keys have both read/write permissions. I tried with newly generated API keys, same problem.
When requesting the test API, getting the following response:
{
"errors": [
{
"error_code": "",
"error_message": "Sorry, you cannot list resources."
}
]
}
The credentials are OK, REST API keys have both read/write permissions. I tried with newly generated API keys, same problem.
Share Improve this question edited Apr 22, 2019 at 12:50 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Apr 22, 2019 at 11:16 Dyna Rizki HabibahDyna Rizki Habibah 11 silver badge2 bronze badges1 Answer
Reset to default 0Here ya go
The original .htaccess
looked like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Then I changed it to the following
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
and now it works !!!
本文标签: rest apiquoterrormessagequot quotSorryyou cannot list resourcesquot using WooCommerce API
版权声明:本文标题:rest api - "error_message": "Sorry, you cannot list resources." using WooCommerce API 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736289328a1928281.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论