mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2025-01-02 04:34:11 -08:00
Retry HTTP(S) requests for non-429 status codes
This commit is contained in:
parent
94c628b822
commit
1687d30417
|
@ -93,7 +93,7 @@ export namespace EaglerSkins {
|
||||||
res(await downloadSkin(skinUrl));
|
res(await downloadSkin(skinUrl));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status == 429) throw new Error("Ratelimited!");
|
if (err.status == 429) throw new Error("Ratelimited!");
|
||||||
else rej("Unexpected HTTP status code: " + err.status);
|
else throw new Error("Unexpected HTTP status code: " + err.status);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user