Skip to content
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

AWS non-retryable streaming request error #6770

Open
3 of 4 tasks
gauthampkrishnan opened this issue Jan 2, 2025 · 3 comments
Open
3 of 4 tasks

AWS non-retryable streaming request error #6770

gauthampkrishnan opened this issue Jan 2, 2025 · 3 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@gauthampkrishnan
Copy link

Checkboxes for prior research

Describe the bug

I am trying to upload a file using aws putObject but with body as createReadStream and using retryMode as standard but on retry it throw error non-retryable streaming request error.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/package-name@version, ...

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

18.20.4

Reproduction Steps

try to upload a file using body as stream and try to replicate a failure while uploading file

Observed Behavior

non-retryable streaming request error

Expected Behavior

I think it shouldnt throw error and it should retry

Possible Solution

No response

Additional Information/Context

No response

@gauthampkrishnan gauthampkrishnan added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 2, 2025
@kuhe
Copy link
Contributor

kuhe commented Jan 8, 2025

That is normal. The request reads the stream but cannot rewind it if it fails.

@gauthampkrishnan
Copy link
Author

gauthampkrishnan commented Jan 8, 2025

So what is the solution to do retries while using streams as body ? are there any solution for this scenario ?

@gauthampkrishnan
Copy link
Author

gauthampkrishnan commented Jan 8, 2025

Would using Upload() method from lib-storage helps in this case ?https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-lib-storage/ as i am guessing this would buffer the parts and buffered parts would be retried depending on the client retry config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants