Skip to content

Commit

Permalink
Improved 429 logging
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorgullmark committed Oct 20, 2021
1 parent f0f88b2 commit 716c9f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ExilenceNextApp/src/config/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function configureAxios() {
rootStore.rateLimitStore.setRetryAfter(+retryAfter);
}
if (error.response?.headers['x-rate-limit-policy'] === 'stash-request-limit') {
Sentry.captureException('Stash request limit reached');
const state = error.response?.headers['x-rate-limit-account-state'];
Sentry.captureException(`Stash request limit reached, state: ${state}`);
}
}
return Promise.reject(error);
Expand Down

0 comments on commit 716c9f8

Please sign in to comment.