-
Notifications
You must be signed in to change notification settings - Fork 7
Description
The execution stops with an error, below you can find the terminal output.
Upon further inspection of the event, it shows that it contains: _Event.data: 'no contract found in list'
`❯ node newEventLogSubscriptions.js
undefined:1
no contract found in list
^
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at WebSocketProvider.onMessage (/Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/@zilliqa-js/subscriptions/dist/cjs/src/ws.js:167:32)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (/Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/yaeti/lib/EventTarget.js:107:17)
at W3CWebSocket.onMessage (/Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/websocket/lib/W3CWebSocket.js:234:14)
at WebSocketConnection. (/Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/websocket/lib/W3CWebSocket.js:205:19)
at WebSocketConnection.emit (node:events:513:28)
at WebSocketConnection.processFrame (/Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/websocket/lib/WebSocketConnection.js:554:26)
at /Users/me/Zilliqa-JavaScript-Library-Examples/node/node_modules/websocket/lib/WebSocketConnection.js:323:40
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Node.js v18.16.0`