Skip to content

python(fix): include server error message in sift_client HTTP errors - #864

Merged
wei-sift merged 3 commits into
mainfrom
eng-16487-include-server-error-message-in-sift_client-upload-failures
Nov 4, 2026
Merged

wei-sift merged 3 commits into
mainfrom
eng-16487-include-server-error-message-in-sift_client-upload-failures

Conversation

@wei-sift

@wei-sift wei-sift commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Failed uploads only showed 400 Client Error: Bad Request for url: ... because raise_for_status() drops the response body, so the server's reason was hidden. This adds a small helper that includes the server's response in the error and uses it for all file uploads and downloads in sift_client

Tested by importing a CSV with a month-first timestamp. The error now ends with Server response: ... instead of a generic message

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Python docs preview: https://sift-stack.github.io/sift/python/pr-864/

Deployed from fa2cb5d. The link may take up to a minute to become live as GitHub Pages propagates.

@wei-sift
wei-sift marked this pull request as ready for review November 3, 2026 01:25
Comment thread python/changelog.d/864.fix.md Resolved
@wei-sift
wei-sift merged commit 12009e2 into main Nov 4, 2026
27 checks passed
@wei-sift
wei-sift deleted the eng-16487-include-server-error-message-in-sift_client-upload-failures branch November 4, 2026 18:48
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.

3 participants