Skip to content
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

Cannot read property 'gasLimit' of null #2843

Closed
miguelmota opened this issue May 24, 2019 · 1 comment
Closed

Cannot read property 'gasLimit' of null #2843

miguelmota opened this issue May 24, 2019 · 1 comment

Comments

@miguelmota
Copy link

Description

Getting the error TypeError: Cannot read property 'gasLimit' of null randomly

Expected behavior

Actual behavior

Steps to reproduce the behavior

Error Logs

Screen Shot 2019-05-24 at 4 30 03 PM

Gists

Versions

  • web3.js: ^1.0.0-beta.37
  • nodejs:
  • browser: Chrome
  • ethereum node: infura rinkeby
@nivida
Copy link
Contributor

nivida commented May 28, 2019

Please update to the latest version of Web3.js and be aware that getBlock will return null if the requested block does not exist. This looks like an issue of infura.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants