generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When making API calls to bidirectional streaming operations using the RPC v2 CBOR protocol, the generated Rust client sets incorrect HTTP headers for Content-Type and Accept. Both headers are set to application/cbor instead of the expected vnd.amazon.eventstream for streaming operations.
Expected Behavior
According to the Smithy documentation, when an operation:
- Sends an
EventStreamSenderin the request, theContent-Typeheader should bevnd.amazon.eventstream - Returns an
EventReceiverin the response, theAcceptheader should bevnd.amazon.eventstream
Current Behavior
The generated client sets:
Content-Type: application/cbor(should bevnd.amazon.eventstream)Accept: application/cbor(should bevnd.amazon.eventstream)
This causes the API call to hang indefinitely in the .await() block without returning a response.
Sample Request Headers
content-type: application/cbor
smithy-protocol: rpc-v2-cbor
accept: application/cbor
x-amz-date: 20251124T171442Z
authorization: ****
x-amz-security-token: ******
amz-sdk-request: attempt=1; max=3
Related Issue
Seems like this was an issue also on the server side, but has been fixed: #4322.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working