question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IpcProvider subscription frozen after few minutes

See original GitHub issue

using 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:open
  • Created 3 years ago
  • Comments:32 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
coffee-gitcommented, Dec 13, 2021

same v5.5.2

2reactions
k1ngJcommented, Nov 23, 2021

Same issue here. Returns a full tx object instead of a hash.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found