forked from mirrored/github-readme-stats
chore: add comment with issue link to the retryer rate limit detection logic (#4508)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
co-authored by
Alexandr
parent
3ce1fd74ae
commit
ba9406e84c
@@ -42,6 +42,7 @@ const retryer = async (fetcher, variables, retries = 0) => {
|
||||
);
|
||||
|
||||
// react on both type and message-based rate-limit signals.
|
||||
// https://github.com/anuraghazra/github-readme-stats/issues/4425
|
||||
const errors = response?.data?.errors;
|
||||
const errorType = errors?.[0]?.type;
|
||||
const errorMsg = errors?.[0]?.message || "";
|
||||
|
||||
Reference in New Issue
Block a user