mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: retry api calls to riot if we receive a 504 error
This commit is contained in:
parent
e0adc777e0
commit
609dfcc9d0
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class JaxRequest {
|
|||
} catch ({ statusCode, ...rest }) {
|
||||
this.retries--
|
||||
|
||||
if (statusCode !== 503 && statusCode !== 500) {
|
||||
if (statusCode !== 500 && statusCode !== 503 && statusCode !== 504) {
|
||||
// Don't log 404 when summoner isn't playing
|
||||
if (!this.endpoint.includes('spectator')) {
|
||||
Logger.transport('file').error(`JaxRequest Error ${statusCode} : `, rest)
|
||||
|
|
|
|||
Loading…
Reference in a new issue