zilliqa-js-viewblock icon indicating copy to clipboard operation
zilliqa-js-viewblock copied to clipboard

SocketProtocolError

Open re2005 opened this issue 3 years ago • 0 comments

Hi everyone, Thanks for this awesome lib.

I'm using it with my key: client = Zilliqa({ apiKey: 'abc' });

this.client.subscribe({ event: 'addressTx', param: this.contract }, console.log);

Getting this error:

SocketProtocolError {name: "SocketProtocolError", message: "Client connection establishment timed out", code: 4007, stack: "SocketProtocolError: Client connection establishme…es/socketcluster-client/lib/sctransport.js:86:10)"} code: 4007 message: "Client connection establishment timed out" name: "SocketProtocolError" stack: "SocketProtocolError: Client connection establishment timed out↵ at SCClientSocket._onSCClose (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:632:15)↵ at SCTransport.eval (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:304:12)↵ at SCTransport.Emitter.emit (webpack-internal:///./node_modules/socketcluster-client/node_modules/component-emitter/index.js:133:20)↵ at SCTransport._onClose (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:217:28)↵ at eval (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:86:10)" proto: Error

Any idea if there's something wrong with the subscribers ?

Cheers

re2005 avatar Oct 28 '20 08:10 re2005