Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

312
Vistas
Error: already ended, I created a list of pdf paths and tried to merge them in one file, but I'm getting Unhandled promise Error: already ended

I created a list of pdf paths and tried to merge them in one file, but I'm getting Unhandled promise Error: already ended

this is my code, I tried also to await while adding to pdf but didn't like it Is there any way to handle this error?

 listOFPdf.push(docPath.filepath);//list of pdf paths
    const merger = new PDFMerger();
    (async()=>{
      listOFPdf.forEach(file=> { //loop through paths and merge them
      const mergedPdf = await merger.save(file); // save the path
    })
  }) ();// calling the function
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda