If your transaction cannot be processed due to the SansRouter: INSUFFICIENT_OUTPUT_AMOUNT error, there is probably a problem with one of the tokens you want to trade.
If your transaction cannot be processed due to SansRouter: EXPIRED error.
If your transaction cannot occur due to SansRouter: K error
If your action cannot be executed due to Unknown error: "Cannot read property 'toHexString' of undefined".
If your transaction cannot be executed due to Execution reverted: TransferHelper: TRANSFERFROM_FAILED error.
If your transaction fails due to SansRouter: INSUFFICIENT_A_AMOUNT or SansRouter: INSUFFICIENT_B_AMOUNT error.
Provider Error No provider was found
If your transaction fails because of an error like MetaMask - RPC Error: Internal JSON-RPC error. estimateGas failed