Greetings,
I’m trying to update an item after I created it, adding it its respective woocomerce id through a web-hook, but recently I’m getting a 403, here is the stack
err: {
"message": "Request failed with status code 403",
"stack":
Error: Request failed with status code 403
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:312:11)
at IncomingMessage.emit (node:events:525:35)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Cookie": "sid=c279b6087e72c5a356a397acee614c9958632b59e69e32d85ca5e89c",
"User-Agent": "axios/0.25.0",
"Content-Length": 23
},
"method": "put",
"url": "/api/resource/Item/TEST001",
"data": "{\"woocommerce_id\":1984}",
"baseURL": "url"
},
"status": 403
}
}
Does anyone have an idea why I’m getting this error?
Best regards.