fix(archive): The latest version of the matrix-js-sdk
dependency requires a Node version of at least: 12.9. Node 12 introduced TLSv1.3 as default, which axios
then uses. This is causing the archive command to break, so the particular command will continue forward with TLSv1.2 for now.
This commit is contained in:
parent
6273452876
commit
06e0ce26a9
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
const { JSDOM } = require('jsdom');
|
||||
const qs = require('qs');
|
||||
const https = require('https');
|
||||
|
||||
const sleep = ms => new Promise(r => setTimeout(r, ms));
|
||||
|
||||
|
@ -35,6 +36,7 @@ const arc3Str = str => `<em>Timed out <code>${str}</code></em>`;
|
|||
const run = async (roomId, userInput, rearchive) => {
|
||||
const instance = axios.create({
|
||||
baseURL: `https://${config.archive.domain}`,
|
||||
httpsAgent: https.Agent({ maxVersion: "TLSv1.2"}),
|
||||
headers: headers(config.archive),
|
||||
transformResponse: [],
|
||||
timeout: 10 * 1000
|
||||
|
|
Loading…
Reference in a new issue