Skip to content

Report unparseable single-header responses as MalformedResponse - #696

Merged
jadamcrain merged 2 commits into
mainfrom
fix/single-header-malformed
Oct 22, 2026
Merged

jadamcrain merged 2 commits into
mainfrom
fix/single-header-malformed

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

Restart, delay-measure (time sync) and file read tasks now report a response whose objects cannot be parsed as MalformedResponse with its cause, like commands and the other file tasks. UnexpectedResponseHeaders stays for well-formed responses with the wrong headers.

jadamcrain added a commit that referenced this pull request Oct 22, 2026
@jadamcrain
jadamcrain enabled auto-merge October 22, 2026 23:06
@jadamcrain
jadamcrain added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 22, 2026
jadamcrain added a commit that referenced this pull request Oct 22, 2026
@jadamcrain
jadamcrain force-pushed the fix/single-header-malformed branch from c83a1a4 to bb62248 Compare October 22, 2026 23:15
@jadamcrain
jadamcrain enabled auto-merge October 22, 2026 23:15
@jadamcrain
jadamcrain added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 22, 2026
Restart, delay measure and file read read their response through
get_only_object_header, whose error conversions turned a parse failure
into UnexpectedResponseHeaders and dropped the ObjectParseError. Commands
and the other file tasks already report MalformedResponse with the cause,
so carry the cause in SingleHeaderError::BadParse and map it the same way.
UnexpectedResponseHeaders remains for well-formed responses with no
header, more than one, or the wrong one.
@jadamcrain
jadamcrain enabled auto-merge October 22, 2026 23:20
@jadamcrain
jadamcrain force-pushed the fix/single-header-malformed branch from bb62248 to b12deea Compare October 22, 2026 23:20
@jadamcrain
jadamcrain added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 3c51581 Oct 22, 2026
36 checks passed
@jadamcrain
jadamcrain deleted the fix/single-header-malformed branch October 22, 2026 23:29
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.

1 participant