aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js (In Maintenance Mode, End-of-Life on 09/08/2025). The AWS SDK for JavaScript v3 in the browser and Node.js is available here: https://github.com/aws/aws-sdk-js-v3
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.6k stars 1.55k forks source link

Use rules.payload when extracting data for event stream #4607

Closed inf3rnus closed 6 months ago

inf3rnus commented 8 months ago

Fixes https://github.com/aws/aws-sdk-js/issues/4580, problem is that there were undefined variables in lib/protocol/rest_json.js

File could use more cleanup as well, as there are also unused variables from whoever touched it last.

Without this change, you cannot use the client to get a streamed sagemaker request.

Checklist