Blocked Request
Yusufsense opened this issue · 0 comments
Yusufsense commented
When trying to make a request a "406 Security Incident" was detected, stating the firewall detected a suspicious request.
Error:
/home/user/node_modules/send-request/src/index.js:46
const error = new Error(transformed.statusMessage);
^
Error: Not Acceptable
at IncomingMessage.<anonymous> (/home/user/node_modules/send-request/src/index.js:46:25)
at IncomingMessage.emit (node:events:532:35)
at endReadableNT (node:internal/streams/readable:1346:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
response: {
statusCode: 406,
statusMessage: 'Not Acceptable',
headers: {
date: 'Sat, 12 Nov 2022 10:18:01 GMT',
server: 'Apache',
'content-length': '568',
connection: 'close',
'content-type': 'text/html; charset=iso-8859-1'
},
body: "<html><head><title>406 Security Incident Detected</title><meta name='viewport' content='width=device-width'><link href='//splash.simply.com/errorpage.css' rel='stylesheet'></head><body><h1>406 Security Incident Detected</h1><p>Your request was blocked.</p><h3>If you are the owner of the website:</h3><p>The Website Application Firewall blocked this request for being suspicious.</p><p>You can see the detailed reason for this in your webserver logs.</p><hr><p> code - www.islamiskaforbundet.se - ip adress - code </p></body></html>"
}
}
Code:
const swedenPrayerTimes = require("sweden-prayer-times");
(async () => {
const prayerTimes = await swedenPrayerTimes("Stockholm");
console.log(prayerTimes);
})();