diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index de4e619..fa558f4 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -187,7 +187,7 @@ export class Fetcher { if (httpCacheItem.status === 429) { const retryAfter = parseInt(`${httpCacheItem.headers['retry-after']}`); if (!isNaN(retryAfter)) { - await this.rateLimitedCache.set(url.host, true, retryAfter); + await this.rateLimitedCache.set(url.host, true, retryAfter * 1000); } throw new TooManyRequestsError(retryAfter);