Skip to content

fix: include the server error message in raise_for_status HTTP errors - #181

Merged
GonBogner merged 1 commit into
masterfrom
fix/TKT-17943-surface-server-error-message
Aug 24, 2026
Merged

fix: include the server error message in raise_for_status HTTP errors#181
GonBogner merged 1 commit into
masterfrom
fix/TKT-17943-surface-server-error-message

Conversation

@GonBogner

@GonBogner GonBogner commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Generated description

Below is a concise technical summary of the changes proposed in this PR:
Propagate server-provided error messages through raise_for_status so offline scan uploads reveal the actual rejection reason, such as an unsupported Windows scanner version, instead of a generic HTTP error. Update the SDK version and validate the behavior with a conflict-response test.

Latest Contributors(2)
UserCommitDate
gon@intezer.comfix: include the serve...August 24, 2026
tufik@intezer.comfix: defer response pa...July 08, 2026
Review this PR on Baz | Customize your next review

Previously only 400 responses surfaced the server's error message; other
statuses raised a bare "409 Client Error: CONFLICT for url" style message,
hiding the actual rejection reason from CLI users and logs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@GonBogner
GonBogner force-pushed the fix/TKT-17943-surface-server-error-message branch from b59e945 to 88fb424 Compare August 24, 2026 11:56
@GonBogner GonBogner changed the title fix: include the server error message in raise_for_status HTTP errors (TKT-17943) fix: include the server error message in raise_for_status HTTP errors Aug 24, 2026
@GonBogner
GonBogner merged commit f53ed09 into master Aug 24, 2026
8 checks passed
@GonBogner
GonBogner deleted the fix/TKT-17943-surface-server-error-message branch August 24, 2026 12:46
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