You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object.keys(this.subscriptions).forEach(function(id){
^
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
run this:
const ep = 'wss://goerli.infura.io/ws/v3/<XXX>'
const Web3 = require('web3')
const web3ws = new Web3(
new Web3.providers.WebsocketProvider( ep )
)
web3ws.eth.clearSubscriptions()
The text was updated successfully, but these errors were encountered:
This call should never give an error.
https://web3js.readthedocs.io/en/v1.2.0/web3-eth-subscribe.html#clearsubscriptions
Gives this error:
run this:
The text was updated successfully, but these errors were encountered: