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

444
Vistas
CÓMO SOLUCIONO EL ERROR EN LA IMPLEMENTACIÓN DE HEROKU: UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:80

No puedo encontrar el problema al implementar en Heroku. Ya revisé el código pero fue en vano.

Aparentemente, es algo relacionado con alguna solicitud que no es el manejo de errores:

Sospecho que hay 2 fragmentos del código, porque al eliminar el archivo, la implementación ocurre normalmente.

Los fragmentos son:

Lectura de un certificado .p12

 let cert = fs .readFileSync(path .resolve(__dirname, `../certs/${ process.env.GN_CERT }`));

O generando un búfer con las credenciales:

 const credentials = Buffer.from( `${ clientID }:${ clientSecret }` ).toString('base64');

Nota: clientID y clientSecret son cadenas.

ERROR:

 2022-04-23T22:13:30.578225+00:00 app[web.1]: (node:22) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:80 2022-04-23T22:13:30.578225+00:00 app[web.1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16) 2022-04-23T22:13:30.578225+00:00 app[web.1]: (Use `node --trace-warnings ...` to show where the warning was created) 2022-04-23T22:13:30.578305+00:00 app[web.1]: (node:22) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error either by throwing inside of a sync function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) 2022-04-23T22:13:30.578341+00:00 app[web.1]: (node:22) [DEP0018] DeprecationWarning: Unhandled promises rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Te agradecería si puedes ayudar.

about 4 years ago · Santiago Trujillo
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