Errors -4 and -7 for proc get_images
Closed this issue · 2 comments
michaelfranzl commented
I'm getting this, though other models work:
Raw JSON Request
{
"action": "woocommerce_json_api",
"proc": "get_images",
"arguments": {
"token": "1234",
"order_by": "name",
"order": "ASC"
}
}
Raw JSON Response
{
"action": "woocommerce_json_api",
"proc": "get_images",
"arguments": {
"token": "",
"order_by": "name",
"order": "ASC"
},
"status": false,
"errors": [
{
"text": "Permissions for this user have not been set",
"code": -7
},
{
"text": "Not a valid API User",
"code": -4
}
],
"warnings": [],
"notifications": [],
"payload": [],
"payload_length": 0
}
jasonknight commented
You need to resave the API user. Visit the user edit page, and make sure the permissions for that call are set to what you want, and then save.
michaelfranzl commented
That fixed it.