Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

297
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!