-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error: PollingBlockTracker - encountered an error while attempting to update latest block: #3357
Comments
Closing this as a duplicate of issue #3356 |
I had the sam issue with BSC testnet. I solved mine by replacing 'https' in the provider url with 'wss'
|
If it helps, I had the exact same error. I could deploy on any ethereum environment, but couldn't deploy on Polygon (neither mumbai or the mainet). When I tried with this https://rpc-mumbai.maticvigil.com/ instead of this https://rpc-mumbai.matic.today, it worked. Hope it helped! |
works like a charm |
I am having the same issue in
|
I get the same |
Nothing is actually working for me. Most of time I get TIMEDOUT issue now. |
I later found out that the major cause of this problem is unstable network. your ip changes in the middle of deploying the contract. the solution is to use a stable network or use a vpn which will stabilize your network. in my case I used proton vpn and everything worked perfectly |
Please reopen this issue... |
Try this Matic testnet url: https://matic-mumbai.chainstacklabs.com/ Worked for me! |
This URL did not work for me - same issue. |
I had same issue but resolve it by using speedy node testnet url. https://speedy-nodes-nyc.moralis.io/*****.......*****/bsc/testnet |
Amazing! It worked for me. |
It worked for me.Thx |
I had the same issue with BSC testnet. I solved mine by replacing 'https' in the provider url with 'wss' worked a t a point but after few days it stopped working so i had to migrate using this:
worked for me |
I've started seeing the exact same And I was able to fix it by simply replacing
To >>>
goerli: {
provider: function () {
return new HDWalletProvider(
privateKeys.split(','), // Array of account private keys
`wss://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`// Url to an Ethereum Node
)
},
gas: 5000000,
gasPrice: 25000000000,
network_id: 5,
skipDryRun: true,
confirmations: 10,
networkCheckTimeout: 1000000,
websocket: true,
timeoutBlocks: 90000
} |
This network URL must be the same as you have in MetaMask (New RPC URL) |
Any updates on this problem ? I still got this error sometimes when running my application on bsc testnet |
Hey I have solved finally ✌️🎉 I didn't use truffle HD Wallet anymore as it gave me a lot of pain 😞. Finally, I used the core etherium web3.js for everything like provider instance creation, wallet selection, pay gass, everything. I used core etherium library https://github.com/ethereum/solc-js for the ABI (Application Binary Interface) & bytecode generation. Use Etherium Solc-js as it is official library of etherium team & it has all the feature what truffle has 💪 I used Alchemy for my Polygon mumbai test-network Node communication. Wolla, that's it. Here is the code that will help you:
|
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({mpt #1 If anyone is facing the above error to run with Matic Network then run using This Worked for me.. |
Hey dears! Found the answer on this forum: |
Run |
Issue
What the issue is, in broad strokes.
Steps to Reproduce
Please provide the shortest amount of steps to reproduce your issue.
Expected Behavior
What you expected to happen.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Environment
truffle version
):node --version
):npm --version
):The text was updated successfully, but these errors were encountered: