Sagiri
Sagiri copied to clipboard
StatusError: Forbidden
Please describe the problem you are having in as much detail as possible: Code throws a statusCode: 403, when trying to get results from SauceNAO.
node sagiritest.js
/Volumes/piipperi/Desktop/BraixenBot/node_modules/bent/src/nodejs.js:133
return reject(new StatusError(res))
^
StatusError: Forbidden
at ClientRequest.<anonymous> (/Volumes/piipperi/Desktop/BraixenBot/node_modules/bent/src/nodejs.js:133:23)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:514:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:535:22)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:343:12)
at readableAddChunk (node:internal/streams/readable:316:9)
at Readable.push (node:internal/streams/readable:253:10) {
statusCode: 403,
json: [AsyncFunction (anonymous)],
text: [Function (anonymous)],
arrayBuffer: [Function (anonymous)],
headers: {
date: 'Fri, 25 Aug 2023 13:13:58 GMT',
'content-type': 'application/json',
'transfer-encoding': 'chunked',
connection: 'keep-alive',
vary: 'Accept-Encoding',
'cache-control': 'private, max-age=1800',
'cf-cache-status': 'DYNAMIC',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=8RcTZHjMsdH8Gz7BFkuKJxhoashnHj3DnEWVFBpCTQqHWSuZv1387%2FjjG%2FPydrLerPDVql8gLAOUoEDbh08RETKflRkZKjQH9u75miRlSXHmK8hqq1Pnez6RaIXyJA%3D%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '7fc4186ddec1376a-HEL',
'content-encoding': 'br'
}
}
Node.js v20.5.0
Include a reproducible code sample here, if possible:
// Place your code here
const sagiri = require("sagiri");
const client = sagiri("token");
const results = client("http://i.imgur.com/5yFTeRV.png");
Further details:
- version: 3.4.0
- Node.js version: v20.5.1
- Operating system: macOS 12.6.8 (21G725)
- Priority this issue should have – please be realistic and elaborate if possible:
- [ ] I have also tested the issue on latest master, commit hash: