I have a call to estimateGas from an Express server to a private Hyperledger Besu chain and everything was working fine yesterday, yet today when I run the same method it's returning "Error: Returned error: Internal error". Nothing changed in the code between yesterday and today, and I'm lost as to where to even start troubleshooting.
That is the extent of the error, nothing more descriptive is given, and after googling for hours, I haven't found anything that could help. The stack trace points to the error handler file in the web3 node module.
Code (actual methods and parameters omitted for security reasons):
console.log("Estimating Gas");
let gas = await this.myContract.methods
.myMethod(
address,
uint256,
address,
address,
uint256
)
.estimateGas({ from: address });
console.log("This call will probably take " + gas + " gas");
Expected behavior: return amount of estimated gas
Actual behavir: Logs the first message, but returns internal error caught from estimateGas method, and never makes it to the second message
Does anyone know how I can retrieve a more specific error or how to fix it?