Skip to content

Treat throttled remote version file as inflation error#4301

Merged
HebaruSan merged 1 commit into
KSP-CKAN:masterfrom
HebaruSan:fix/avc-throttling
Feb 7, 2025
Merged

Treat throttled remote version file as inflation error#4301
HebaruSan merged 1 commit into
KSP-CKAN:masterfrom
HebaruSan:fix/avc-throttling

Conversation

@HebaruSan
Copy link
Copy Markdown
Member

@HebaruSan HebaruSan commented Feb 7, 2025

Motivation

If the GitHub API returns a throttling error when we request a remote version file, a warning is logged:

image

... and the inflation proceeds without the remote version file, which can cause temporary inaccurate metadata if the remote version file has been updated since release.

Other web errors must be treated as warnings in case the URL itself is invalid, but throttling can also happen for valid URLs.

Changes

Now if a request for a remote version file is throttled, it will be treated as an error instead of a warning, so we won't temporarily inflate a mod with partial info.

#4299 did this for repo info requests for SpaceDock mods, but I got sidetracked with all the other stuff and forgot to document it.

@HebaruSan HebaruSan added Enhancement New features or functionality Easy This is easy to fix Netkan Issues affecting the netkan data Network Issues affecting internet connections of CKAN labels Feb 7, 2025
@HebaruSan HebaruSan merged commit 8ea7868 into KSP-CKAN:master Feb 7, 2025
@HebaruSan HebaruSan deleted the fix/avc-throttling branch February 7, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Easy This is easy to fix Enhancement New features or functionality Netkan Issues affecting the netkan data Network Issues affecting internet connections of CKAN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant