Issue with Autotask And Relayer

Getting unpredictable gas error on Autotask task.

cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT","error":

:1234: Code to reproduce

  const provider = new DefenderRelayProvider(event);
  const signer = new DefenderRelaySigner(event, provider, { speed: 'fast' });
  // Use provider and signer for querying or sending txs from ethers, for example...
  const contract = new ethers.Contract(ADDRESS, ABI, signer);
  await contract.genesisLockRound();
<!-- The community will be able to better help if you provide a minimal example that reproduces your issue. Place code inside backticks. -->

#### 💻 Environment

<!-- Tell us what you're using including versions: Truffle, Hardhat, Remix, etc. -->
Web Environment

Hi @elon, this error usually indicates that something within the call may cause your transaction to fail. I dont have access to your contract so I cannot say for sure what thay may be, but double check that there are no revert statements or modifiers on the contract which would prevent it from succeeding.

Great, I will check this out, thank you for the response

Resolved and this was the exact issue, I was triggering a function outside of a buffer time and needed to increase the time to handle the time it takes to spin up each time the function runs.