kszucs opened a new pull request, #7634: URL: https://github.com/apache/opendal/pull/7634
# Which issue does this PR close? Closes #7630. # Rationale for this change HF error responses can include large HTML pages (e.g. 52 KB on CDN-level 404s). OpenDAL was logging the full body, polluting CI output. # What changes are included in this PR? - `parse_error` now reads the `x-error-message` response header instead of parsing the body. HF sets this header on every error with a short human-readable message. - `HfCore::send` switches from `http_client::send` (which buffers the full body) to `fetch`, so error bodies are dropped without being read. - `HfCore::resolve` already used `fetch`; the body is now explicitly dropped on error. - `.github/actions/hf-temp-repo/common.js` gets the same fix: prefer `x-error-message` header, fall back to first 200 chars of the body. # Are there any user-facing changes? No. Error messages are now shorter and cleaner (e.g. `File not found` instead of a full HTML dump), but the `ErrorKind` mapping is unchanged. # AI Usage Statement Developed with Claude Code (claude-sonnet-4-6). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
