diff --git a/src/github.js b/src/github.js index b4a062c..0c6c540 100644 --- a/src/github.js +++ b/src/github.js @@ -20,7 +20,7 @@ const ThrottleOctokit = Octokit.plugin(throttling, retry, paginateGraphQL); const octokit = new ThrottleOctokit({ userAgent: 'stat-card', auth: token, - retry: { request: { retries: 1, retryAfter: 10, } }, + retry: { request: { retries: 10, retryAfter: 10, } }, log: { debug: logs === 'debug' ? console.debug : () => { }, // () => { }🔶 info: logs === 'info' ? console.info : () => { }, @@ -311,7 +311,7 @@ class GithubUser { }); if (response.status === 202) { - const retryAfter = parseInt(response.headers["Retry-After"], 10) || 0; // Handle missing or invalid headers + const retryAfter = parseInt(response.headers["Retry-After"], 10) || 10; // Handle missing or invalid headers octokit.log.info( `${util.color.blue(response.status)} ` + `${util.color.green(repo)} ` +