forked from mirrored/github-stats-extended
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:
1 parent
3ce1fd74ae
commit
ba9406e84c
1 file changed
+1
@@ -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