Fix TLS errors preventing Redis connections in production (#3899)
ioredis 4.14.0 introduced an issue where custom TLS options are no longer honored. I reported it here: luin/ioredis#947 This has been preventing the server from using GitHub tokens, however I'm not sure whether or not this has been causing noticeable issues. For now let's downgrade to the latest working version, which I've confirmed working via the script (checked in).
This commit is contained in:
26
scripts/redis-connectivity-test.js
Normal file
26
scripts/redis-connectivity-test.js
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict'
|
||||
|
||||
const config = require('config').util.toObject()
|
||||
console.log(config)
|
||||
const GithubConstellation = require('../services/github/github-constellation')
|
||||
|
||||
const { persistence } = new GithubConstellation({
|
||||
persistence: config.public.persistence,
|
||||
service: config.public.services.github,
|
||||
private: config.private,
|
||||
})
|
||||
|
||||
async function main() {
|
||||
const tokens = await persistence.initialize()
|
||||
console.log(`${tokens.length} tokens loaded`)
|
||||
await persistence.stop()
|
||||
}
|
||||
|
||||
;(async () => {
|
||||
try {
|
||||
await main()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
process.exit(1)
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user