-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log 429s to sentry (attempt 2); affects [dynamic endpoint uptimerobot weblate opencollective discord github] #9546
Conversation
@@ -74,6 +74,7 @@ export default class UptimeRobotBase extends BaseJsonService { | |||
...opts, | |||
}, | |||
}, | |||
logErrors: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #9155 for details.
The rate limits we're hitting here are on the user-supplied tokens. There's not really anything we can do about this.
@@ -16,7 +16,7 @@ export default class OpencollectiveAll extends OpencollectiveBase { | |||
}, | |||
} | |||
|
|||
static _cacheLength = 900 | |||
static _cacheLength = 1800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets see if this gets us consistently under the limits. If not, I'll raise an issue with OC and see if they'd be willing to grant us a higher limit.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look reasonable to me. Best to filter out errors we can't act on, otherwise it's just noise. Hopefully cache increase on the others will do the job.
… weblate opencollective discord github] (badges#9546) * log to sentry if upstream service responds with 429 * allow services to decide which error(s) to log, default to 429 * don't log 429s from endpoint or dynamic badges * supress 429s from uptime robot badges * supress 429s from weblate if not calling default server * cache opencollective badges for longer * cache discord badges for longer * cache github workflow badges for longer
Refs #9505
Refs #9523
Closes #9524