Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

366
Views
aws s3 No se pueden leer las propiedades de undefined (leyendo 'Stream')

Al intentar descargar un archivo desde s3, a través del método s3.getObject(params),createReadStream(),

 var AWS = require('aws-sdk'); var s3 = new AWS.S3({ accessKeyId: 'xx', secretAccessKey: 'xx', region: 'x',x httpOptions: { timeout: 200000 } }); var params = { Bucket: "xx", Key: 'xx' } var s3Stream = s3.getObject(params).createReadStream() .on('error', function (err) { console.log('READSTREAM error'); console.log(err); }) .on('end', function () { });

me da el error:

TypeError: no se pueden leer las propiedades de undefined (leyendo 'Stream')

utilice "@aws-sdk/client-s3": "^3.54.1", "aws-sdk": "^2.1095.0",

alguna idea de lo que puede pasar?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!