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.

v15.0.0 eth_blockNumber Invalid Request

See original GitHub issue

Starting in v15.0.0 the following error occurs consistently:

Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: Invalid request
    at ReconnectingWebsocketSubprovider._handleSocketMessage (websocket.js:174)
    at PollingBlockTracker._callee2$ (polling.js:135)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:282)
    at Generator.prototype.(anonymous function) [as throw] (http://localhost:3000/static/js/0.chunk.js:47904:21)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _throw (asyncToGenerator.js:29)

Web3 is polling the blockNumber with the request:

{"id":1,"jsonrpc":"2.0","params":[],"method":"eth_blockNumber","skipCache":true}

The parity (v2.4.5) node is responding with

{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request"},"id":1}

I don’t see this skipCache flag documented anywhere in the Parity docs. Is this a standard property implemented in all Ethereum clients?

Prior to v15.0.0 I don’t see this eth_blockNumber request occurring at all. Just eth_getBlockByNumber.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kumaviscommented, Aug 20, 2019

fixed in eth-json-rpc-middleware@4.1.5 and web3-provider-engine@15.0.2

0reactions
naibacommented, Nov 3, 2020

Still a problem in v16.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Received invalid block tag 87. Latest block number is 0
Go to metamask > Settings > Advanced > Reset Account. This will clear the cache and reload data from the hardhat instance, and...
Read more >
web3.eth — web3.js 1.0.0 documentation
The web3-eth package allows you to interact with an Ethereum blockchain and Ethereum smart contracts. var Eth = require('web3-eth'); ...
Read more >
Communication Protocols - EXOR International
CT Modbus CMP ETH ... 0.0.0.0. Communication with the controller is stopped, no request frames are ... The device did received a response...
Read more >
Search Results - CVE
As a workaround, Users can apply the patch in Contiki-NG pull request 2081 on ... Interactive Graphical SCADA System Data Server (V15.0.0.22020 and...
Read more >
Mastering Blockchain, Second Edition
Message call transaction. Messages. Calls. Transaction validation and execution. The transaction substate. State storage in the Ethereum blockchain.
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