Code -32000 (“processing response error”) when reading data from a polygon smart contract
I am just starting out with ethers.js and smart contracts in general. I am attempting to read the price between two tokens (MATIC => WETH) using the getAmountsOut() function on the sushiswap router (0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506). My code is below.