Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda