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

300
Vistas
Web3js Javascript Returned error: execution reverted

I have my own BSC node running for scraping data, sometimes there is a token that does not have the standard token info functions like name, symbol, totalSupply and decimals and my scraper will throw a error "Returned error: execution reverted". now I can't find a way to prevent from stopping the scraper if I get this error. I just want the scraper to ignore that token if it gets the error.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

For anyone who is interested. basically this is a double but I can not delete my question.

What I did to solve my problem is

await contract.methods.totalSupply().call().catch((err) => {
 return;
});

web3js can have a catch() to catch the errors.

about 4 years ago · Juan Pablo Isaza Denunciar
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