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

151
Views
No se puede leer la propiedad 'url' del nodo indefinido

Estoy tratando de construir un descargador de videos de youtube usando node, express y ytdl-core, pero recibo el error "No se puede leer la propiedad 'url' de indefinido". El video esta descargado, pero el archivo esta corrupto, antes de agregar el render, la descarga estuvo bien

Este es mi js:

 app.get("/", function (req, res) { const { url } = req.query; ytdl.getInfo(url).then((info) => { let name = info.videoDetails.title; let thumbnail = info.videoDetails.thumbnail.thumbnails[4].url; res.header("Content-Disposition", `attachment; filename="${name}.mp4"`); res.render("index.ejs", { name, thumbnail }); return ytdl(url).pipe(res); }); }); app.listen(3000);

¡Gracias por la ayuda!

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!