aws-sdk-js-s3-exit-code-0
Attempts to reproduce S3 PutObject returning with exiting with code 0
- GitHub Issue: aws/aws-sdk-js-v3#4332
- Reference: https://github.com/marco-ippolito/snippet-aws-bug
Prerequisites
- Install Node.js by following these steps:
- Install nvm.
- Use node v18.x.x by running
nvm use
ornvm use 18
in a terminal window. - Verify that node is installed by running
node -v
in a terminal window and confirm that it shows Node.js >=18, such asv18.13.0
). - Enable corepack by running
corepack enable
in a terminal window.
- Install dependencies by running
yarn
. - Popuate
.env
file with your AWS credentials, config and bucket name. You can refer.env.example
for the format.
Setup
- Run
yarn start:sdk
It will exit after some iteration (I've notice the slower the internet speed the sooner it will crash) - Run
yarn start:native
It will never exit.