Skip to content
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

Treat throttled remote version file as inflation error #4301

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

HebaruSan
Copy link
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
2 checks passed
@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