Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 555 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 555 Bytes

Shows Infura Ropsten websocket timeout in web3.py, but not in web3.js

Prerequisites

pip3 install -r requirements.txt

npm install
export PROJECT_ID=<Your Infura Project ID>

Run

Same implementation, returns events in web3.js, timeout in web3.py --

node ropstenWssTimeoutDemo.js

python3 ropsten_wss_timeout_demo.py

In addition, ropsten_wss_timeout_demo2.py shows web3.py works when toBlock - fromBlock <= 112, but timeout when toBlock - fromBlock > 112

python3 ropsten_wss_timeout_demo2.py