Skip to content

Commit

Permalink
Merge pull request #318 from ZIMkaRU/bugfix/fix-handling-bfx-api-inva…
Browse files Browse the repository at this point in the history
…lid-credentials-error

Fix handling bfx api invalid credentials error
  • Loading branch information
prdn authored Jul 24, 2023
2 parents 5a4b1ac + d47f98b commit bdacc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/loc.api/helpers/api-errors-testers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const _getErrorString = (err) => {
}

const isAuthError = (err) => {
return /(token: invalid)|(missing api key or secret)|(apikey: digest invalid)|(apikey: invalid)|(ERR_AUTH_UNAUTHORIZED)/i.test(_getErrorString(err))
return /(token: invalid)|(missing api key or secret)|(apikey: digest invalid)|(apikey: invalid)|(ERR_AUTH_UNAUTHORIZED)|(ERR_AUTH_API: ERR_INVALID_CREDENTIALS)/i.test(_getErrorString(err))
}

const isRateLimitError = (err) => {
Expand Down

0 comments on commit bdacc45

Please sign in to comment.