diff --git a/src/Services/GithubApiService.ts b/src/Services/GithubApiService.ts index 685bac58..c8c885c9 100644 --- a/src/Services/GithubApiService.ts +++ b/src/Services/GithubApiService.ts @@ -91,9 +91,10 @@ export class GithubApiService extends GithubRepository { private handleError(responseErrors: GithubError[]): ServiceError { const errors = responseErrors ?? []; - const isRateLimitExceeded = (errors ?? []).some((error) => { - error.type.includes(EServiceKindError.RATE_LIMIT); - }); + const isRateLimitExceeded = errors.some((error) => + error.type.includes(EServiceKindError.RATE_LIMIT) || + error.message.includes("rate limit") + ); if (isRateLimitExceeded) { throw new ServiceError(