Skip to content

Add support for event stream requests over RPC #2662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 13, 2021

Conversation

millems
Copy link
Contributor

@millems millems commented Aug 12, 2021

This reverts the revert in https://github.com/aws/aws-sdk-java-v2/pull/2451/files, which was done because the original change broke Lex's event streaming APIs: it changed the content-type in the event stream to application/x-amz-json-1.1, which Lex couldn't handle because it is a rest-json service.

This will no longer break Lex because of the second commit included in this customizing the content-type for Lex to application/json. This also affects non-event-streaming operations.

I verified that after this change, Lex's deleteSession (non-streaming) and startConversation (event streaming) APIs both work.

In the long-term, we should change the default content-type for all rest-json services to application/json and remove this customization, but that's a longer-term project.

@dagnir
Copy link
Contributor

dagnir commented Aug 12, 2021

Can you run the integ tests to make sure Transcribe is working?

@millems
Copy link
Contributor Author

millems commented Aug 12, 2021

Transcribe Streaming and Kinesis integration tests pass.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

91.9% 91.9% Coverage
0.0% 0.0% Duplication

@millems millems merged commit a1f75b3 into master Aug 13, 2021
@millems millems deleted the millem/support-rpc-event-streaming branch August 13, 2021 18:31
aws-sdk-java-automation added a commit that referenced this pull request Aug 16, 2023
…f4ea1f07a

Pull request: release <- staging/7c636434-0a13-49f3-b096-5f7f4ea1f07a
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