-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3.eth.getBlockNumber().then(console.log) result is zero #2083
Comments
I've tested it, something is strange with the getBlockNumber method. |
I reproduced the following steps:
web3 version: web3@1.0.0-beta.36 I think there is no issue here. Only need to upgrade your web3 version. |
@Meabo I've tested it in the browser and it looks like a bug. Thanks for your additional information! |
@nivida this is still a bug ? I can't reproduce the issue. Tested it in the browser : no error. |
Yep tested it again no error too. Sorry for the confusion. |
I see this issue on node.js on an Ubuntu 18.04 instance with a local geth node |
Ok, yeah I get the same problem where I'm not seeing any output while connecting to my local IPC node. Seems @eyezick is as well, dunno if he was able to resolve it since then. I'm on Ubuntu 18.04, Geth v1.9.0-unstable, web3. 1.0.0-beta.53 Code:
Results are completely empty |
my code is following:
var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'))
web3.eth.getBlockNumber().then(console.log);
web3.eth.getBlockNumber().then(console.log) this code show zero, but my node sync block number is 4523458 why ??
The text was updated successfully, but these errors were encountered: