diff --git a/utils/curl.js b/utils/curl.js index c67c66b..0f73d12 100644 --- a/utils/curl.js +++ b/utils/curl.js @@ -96,6 +96,14 @@ const get = async (pathname, options) => { await pause(5000) } if (statusCode === 404) logger.warn('404') + if (statusCode === 35) + { + logger.warn('SSL connect error, retrying') + // If this error happens, it means that we have been banned + // So we wait 5 minutes before retrying + // I added 10 seconds to be sure that the server is ready + await pause(1000 * 60 * 5 + 10000) + } else logger.error('Error : ', statusCode) throw { code: statusCode } }