Skip to content

compression: report malformed payloads as invalid_argument#144

Open
Yong-yuan-X wants to merge 1 commit into
anthropics:mainfrom
Yong-yuan-X:fix/issue-139-compression-error-code
Open

compression: report malformed payloads as invalid_argument#144
Yong-yuan-X wants to merge 1 commit into
anthropics:mainfrom
Yong-yuan-X:fix/issue-139-compression-error-code

Conversation

@Yong-yuan-X
Copy link
Copy Markdown
Contributor

Summary

  • report malformed gzip and zstd compressed payloads as invalid_argument instead of internal
  • apply the error-code change consistently across gzip/zstd bad header, truncated stream, CRC mismatch, size mismatch, and decoder failure paths
  • add regression coverage for malformed gzip/zstd payload error codes
  • document the observable error-code change in the changelog

Closes #139.

Testing

  • cargo test -p connectrpc compression

@github-actions
Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

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.

compression: error code for malformed compressed payloads

1 participant