Skip to content

Commit

Permalink
fix: prevent infinite retries on queue with store api 403 error
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Oct 23, 2024
1 parent a741327 commit d67dd60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/lib/pubsub/webhook-tiny.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = async (
response: err.response?.data,
status: err.response?.status
})
if (err.response?.status === 403) return
if (err.response?.status === 503) {
setTimeout(() => {
throw err
Expand Down Expand Up @@ -113,6 +114,7 @@ module.exports = async (
response: err.response?.data,
status: err.response?.status
})
if (err.response?.status === 403) return
if (err.response?.status === 503) {
setTimeout(() => {
throw err
Expand Down

0 comments on commit d67dd60

Please sign in to comment.