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.