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

199
Vistas
unhandled promise rejection node.js

I think I'm missing something small. I keep getting UnhandledPromiseRejectionWarning. I've been combing mdn as well as SO for answers, I need another set of eyeballs on my code.

Thanks

calling promise

proxySvc.setIfElite(proxy)
  .then(success => {
    console.log(success.msg)
  })
  .catch(err => {
    console.error(err.msg)
});

Promise Method

proxySvc.setIfElite = function (P) {
//
return new Promise((resolve, reject) => {
    ProxyVerifier.testAnonymityLevel(P, (error, anonymityLevel) => {
  setCounter();
  if (error || anonymityLevel !== 'elite') {
    reject({
      status: false,
      msg: 'test failure'
    })
  };

 resolve({
      status: true,
      msg: P.ipAddress
    });
 });

})

over 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