Created
June 15, 2018 23:45
-
-
Save njb-said/ff537ba0b909a3334570ff9f21d6104a to your computer and use it in GitHub Desktop.
discordbots.org 403 error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(config.discord.listToken) { | |
var dblapi = require('dblapi.js'); | |
var dbl = new dblapi(config.discord.listToken, self.bot); | |
dbl.on('error', (err) => { | |
logger.error('Error for dblapi.js', err); | |
bugsnag.notify(err); | |
}); | |
logger.debug('[BOT] Linked to discordbots.org - updating stats periodically'); | |
} else { | |
logger.debug('[BOT] Not linking to discordbots.org - no api token set'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"bot","hostname":"7513a8a2373d","pid":1,"level":50,"msg":"Error for dblapi.js { Error: 403 This host is not accessible. | |
at _response.transport.request.then (/src/node_modules/dblapi.js/node_modules/snekfetch/src/index.js:193:21) | |
at <anonymous> | |
at process._tickDomainCallback (internal/process/next_tick.js:228:7) | |
request: undefined, | |
body: <Buffer ... >, | |
raw: <Buffer ... >, | |
ok: false, | |
headers: { | |
date: 'Fri, 15 Jun 2018 23:35:08 GMT', | |
'content-type': 'text/html; charset=utf-8', | |
'transfer-encoding': 'chunked', | |
connection: 'close', | |
'x-varnish': '804159682', | |
'retry-after': '5', | |
'strict-transport-security': 'max-age=15552000; includeSubDomains; preload', | |
'x-content-type-options': 'nosniff', | |
'expect-ct': 'max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"', | |
server: 'cloudflare', | |
'cf-ray': '42b8d9f60d0f0ec1-EWR', | |
'content-encoding': 'gzip' | |
}, | |
statusCode: 403, | |
statusText: 'This host is not accessible.' }" | |
,"time":"2018-06-15T23:35:08.642Z","v":0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment