Skip to content

Instantly share code, notes, and snippets.

@patrobinson
Created April 8, 2020 23:03
Show Gist options
  • Save patrobinson/3933fa09ed96577ce3c0ef8ddfca85d5 to your computer and use it in GitHub Desktop.
Save patrobinson/3933fa09ed96577ce3c0ef8ddfca85d5 to your computer and use it in GitHub Desktop.
Replicate JS SDK hanging
const aws = require ('aws-sdk');
async function test() {
const s3 = new aws.S3({
apiVersion: '2006-03-01',
signatureVersion: 'v4',
httpOptions: {
connectionTimeout: 1000,
timeout: 1000
},
region: 'ap-southeast-2',
maxRetries: 3
})
return s3.listBuckets().promise();
}
test().then(function(f) { console.log(f) }).catch(function(e) { console.log(e.stack) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment