We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52151ba commit 2ff9374Copy full SHA for 2ff9374
server/utils/changelog/detectChangelog.ts
@@ -102,8 +102,8 @@ function checkLatestGithubRelease(
102
} satisfies ChangelogMarkdownInfo
103
})
104
.catch((e: FetchError) => {
105
- if (e.statusCode == 403) {
106
- // with 403 ungh.cc has exhausted it's api keys, returning 0 to indicate this
+ if (e.statusCode === 403 || e.statusCode === 429) {
+ // with 403/429 ungh.cc has exhausted it's api keys, returning error to indicate this
107
return createError({
108
statusCode: 502,
109
statusMessage: ERROR_UNGH_API_KEY_EXHAUSTED,
0 commit comments