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 'size' of undefined #3527

Closed
stimka opened this issue May 20, 2020 · 0 comments · Fixed by #3531
Closed

Cannot read property 'size' of undefined #3527

stimka opened this issue May 20, 2020 · 0 comments · Fixed by #3531
Labels
1.x 1.0 related issues Bug Addressing a bug

Comments

@stimka
Copy link

stimka commented May 20, 2020

const web3ws = new Web3(new Web3.providers.WebsocketProvider('ws://localhost:63116'));
await web3ws.eth.subscribe('newBlockHeaders');
await web3ws.eth.clearSubscriptions();

Get following error:
Cannot read property 'size' of undefined
at Eth.RequestManager.clearSubscriptions (node_modules/web3-core-requestmanager/src/index.js:266:28)

web3 1.2.7
ts-node 8.7.0
node 10.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants