-
Notifications
You must be signed in to change notification settings - Fork 5.1k
web3.eth.subscribe not working #1093
Comments
I have the same issue. I don't get any messages for either pendingTransactions or newBlockHeaders subscriptions. Geth version: 1.7.2-stable |
I don't receive any callbacks on any subscriptions either. |
@Lytigas @johnnyboo can you please try something for me? Connect using |
I have seen the same thing with [email protected] and [email protected]. |
Please make sure you are synced up. While geth is doing its fast sync, the chain is incomplete, so there aren't any events being fired, since there's no existing events yet. Only when the chain sync fully will events start appearing. |
I have the same issue - it dosn't seem to work on geth 1.7.2 (fast sync) - has anybody been able to resolve this yet ? |
same issue here -
|
Have you ensured that you are passing |
@MrTibbles this is the command I'm running geth: |
ok, so I've solved the issue running:
Note: need to set BOTH rpccorsdomain & wsorigins |
Sorry, completely missed your initial response. I was close though, that being handshake failed :) |
@MrTibbles thanks for the help 👍 |
Not working for me:
I see I'm launching with |
This should be fixed with the PR #2000 |
Running geth with websocket:
Then connecting with web3 in a Node.js app:
"Here", "Here 2" do not print to the console. The subscription does not seem to activate, nothing is printed after the version prints to the console.
web3.version
and other web3 commands work fine.Geth version: 1.7.1-stable
Web3 version: 1.0.0-beta.22
The text was updated successfully, but these errors were encountered: