what is "Unknown(0x)" error when swapping tokens in web3.js?

Viewed 23

I'm swapping tokens using web3.js sometimes it succeeds and sometimes it fails, but when it fails I get this error in my console:

VM Exception while processing transaction: revert callBytes failed: Unknown(0x) 

and I believe it is the same as the error below from etherscan: enter image description here

can someone please tell me what is this error and how to solve it?

thank you for your time.

0 Answers
Related