I am trying to deploy contracts to polygon mumbai using truffle.
On eth testnets I get this error too, but using websocket fixes it.
Despite trying all the suggestions in various forum posts nothing seems to make it work.
Whenever this gets to deployment it I get this error:
var e = new Error(‘ETIMEDOUT’)
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: ETIMEDOUT
at Timeout. (C:\Users\node_modules\request\request.js:848:19)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
at PollingBlockTracker._performSync (C:\Users\node_modules\eth-block-tracker\src\polling.js:51:24)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
This is my truffle config
mumbai: {
provider: () => new HDWalletProvider(mnemonic, `https://polygon-mumbai.infura.io/v3/PROJECTID`),
network_id: 80001,
gas: 2000000,
gasPrice: 3,
confirmations: 2,
timeoutBlocks: 500,
skipDryRun: true,
networkCheckTimeout: 1000000,
},