IpcProvider subscription frozen after few minutes
See original GitHub issueusing latest ethers 5.0.30 test code:
const url = '/geth.ipc'
const ethers = require('ethers')
const provider = new ethers.providers.IpcProvider(url);
provider.on("pending", console.log)
new tx stop coming in a minute or so. Tested on few servers, same result. No issues with WebSocketProvider. Also looks strange that this code prints transaction object if using Ipc and just tx hash if using WebSocket. Seems like undocumented behaviour.
Also web3js works fine on same server using this:
const Web3 = require('web3')
const net = require('net');
const url = '/geth.ipc'
const web3 = new Web3(new Web3.providers.IpcProvider(url, net))
web3.eth.subscribe('pendingTransactions')
.on("data", console.log)
Returning only hashes also.
Issue Analytics
- State:
- Created 3 years ago
- Comments:32 (4 by maintainers)
Top Results From Across the Web
web3.js getBlock() call pauses after 500th iteration on MacOs
I'm assuming RPC, because you're using synchronous calls... so maybe there's some sort of limit on file handles that you're running into? – ......
Read more >Problem completing a subscription purchase - Blizzard Forums
I got one 5 minutes later saying my sub has now ended and my account frozen. This is a responce I got to...
Read more >Vision AI dev kit not working when specifying "ModelZipUrl"
Initial Setup: I got a new vision ai dev kit, set it up, updated the firmware and everything works fine. I see it...
Read more >Documentation - Ethers.js
Even secure passwords would likely be broken within a short period of time. ... The IpcProvider allows the JSON-RPC API to be used...
Read more >News — Innovative Primary Care
As always, we encourage you to speak with your IPC provider before beginning ... And like brushing your teeth, it may only need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same v5.5.2
Same issue here. Returns a full tx object instead of a hash.