Skip to content

Conversation

@TheSpareTire177
Copy link

Problem

Downloads would hang indefinitely at 0 B/s when the server returned HTTP error responses.

Solution

Added response.error_for_status_ref()? to check HTTP status codes before attempting to read response chunks.

idunno

I'm not sure why this worked, but my best guess would be that the error handling just re-requested the site downloads and allowed the download to take place.

Testing

Successfully tested with a 510MB modpack download (258 files) that previously hung.

When download requests receive HTTP error responses (like 429, 503, etc.),
the code was previously waiting indefinitely for chunks that would never arrive.
This adds response.error_for_status_ref()? to immediately fail with a clear
error message when the server returns an error status code.

Fixes issue where modpack downloads would hang at 0 B/s indefinitely.
@CLAassistant
Copy link

CLAassistant commented Nov 23, 2025

CLA assistant check
All committers have signed the CLA.

@TheSpareTire177
Copy link
Author

Signed! Thank you for providing such a neat application. I'm looking forward to new features!

@TheSpareTire177
Copy link
Author

sorry i didnt mean to close the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants