Skip to content

Improve buf curl error message on trailing input - #4687

Merged
emcfarlane merged 2 commits into
mainfrom
ed/smallFix
Sep 17, 2026
Merged

emcfarlane merged 2 commits into
mainfrom
ed/smallFix

Conversation

@emcfarlane

Copy link
Copy Markdown
Contributor

Small improvement to the error message for buf curl on trailing data misinterpreted as a multi-stream message.

Closes #3944

@emcfarlane
emcfarlane requested a review from doriable September 16, 2026 21:26
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedSep 17, 2026, 9:05 AM

Comment thread private/buf/bufcurl/invoker_test.go Outdated
func TestVerifySingleRequest(t *testing.T) {
t.Parallel()
resolver := newTestResolver(t)
// Download is server-streaming: it still accepts only a single request, and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's in a different file since I don't see it in this one, otherwise should we have a test case for normal unary too? Similarly maybe cases for second message succeeding to parse unless they're elsewhere

@emcfarlane
emcfarlane merged commit 31080ff into main Sep 17, 2026
10 checks passed
@emcfarlane
emcfarlane deleted the ed/smallFix branch September 17, 2026 13:45
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.

Provide specific error message for multiple-request messages in buf curl

2 participants