aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.57k stars 1.55k forks source link

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

Closed inf3rnus closed 1 month ago

inf3rnus commented 3 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