Skip to content

Improve error reporting for download failures#172

Open
dhruvildarji wants to merge 1 commit intocommaai:masterfrom
dhruvildarji:fix/download-error-reporting
Open

Improve error reporting for download failures#172
dhruvildarji wants to merge 1 commit intocommaai:masterfrom
dhruvildarji:fix/download-error-reporting

Conversation

@dhruvildarji
Copy link

Summary

  • Include URL and HTTP status code in download error messages instead of generic failures
  • Log each download attempt failure with specific URL and error details
  • Catch and log orbit download failures in download_parse_orbit instead of silently swallowing them
  • Aggregate all failure messages so the final error includes what went wrong at each step

Previously, when downloads failed, users would only see RuntimeError: No orbit data found on either servers with no indication of what actually went wrong (e.g., HTTP 404, connection timeout, DNS failure). Now each failure is logged with the specific URL and error, making it much easier to diagnose network/server issues.

Test plan

  • Verified error messages are descriptive when download URLs are unreachable
  • Verified Python syntax compiles correctly for both modified files

Fixes #46

Include URL, HTTP status code, and descriptive error messages when
file downloads fail, making it easier to diagnose network/server issues.

Previously, download failures were silently swallowed or reported with
generic messages like "No orbit data found on either servers" with no
indication of what actually went wrong. Now each failure is logged with
the specific URL and error details.

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

Labels

None yet

1 participant