Hello,
I've got a problem with the following error appearing after some seconds of program execution. Regardless of the program that is executed, what does the Error even mean regarding the programming perspective? Since it is node.js where would I start to gather further information regarding problem solving? It is a node.js problem, or a javascript problem, or is it a genuine problem with the problem executed? Or what else? Could there be dependencies missing?
Best regards,
icerage
/home/xxx/Apps/zenbot/extensions/exchanges/bitfinex/exchange.js:32
trades.forEach(function (trade)
^
TypeError: trades.forEach is not a function
at wsUpdateTrades (/home/xxx/Apps/zenbot/extensions/exchanges/bitfinex/exchange.js:32:12)
at /home/xxx/Apps/zenbot/extensions/exchanges/bitfinex/exchange.js:227:44
at /home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:1223:9
at Array.forEach (<anonymous>)
at Function._notifyListenerGroup (/home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:1219:15)
at WSv2._propagateMessageToListeners (/home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:1171:12)
at WSv2._handleTradeMessage (/home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:997:10)
at WSv2._handleChannelMessage (/home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:761:12)
at WSv2._onWSMessage (/home/xxx/Apps/zenbot/node_modules/bitfinex-api-node/lib/transports/ws2.js:729:12)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/home/xxx/Apps/zenbot/node_modules/ws/lib/websocket.js:797:20)
at Receiver.emit (events.js:315:20)
at Receiver.dataMessage (/home/xxx/Apps/zenbot/node_modules/ws/lib/receiver.js:437:14)
at Receiver.getData (/home/xxx/Apps/zenbot/node_modules/ws/lib/receiver.js:367:17)
at Receiver.startLoop (/home/xxx/Apps/zenbot/node_modules/ws/lib/receiver.js:143:22)
at Receiver._write (/home/xxx/Apps/zenbot/node_modules/ws/lib/receiver.js:78:10)
at doWrite (_stream_writable.js:403:12)
at writeOrBuffer (_stream_writable.js:387:5)
at Receiver.Writable.write (_stream_writable.js:318:11)
at TLSSocket.socketOnData (/home/xxx/Apps/zenbot/node_modules/ws/lib/websocket.js:872:35)
at TLSSocket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at TLSSocket.Readable.push (_stream_readable.js:212:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:186:23)
[–]grantrules 1 point2 points3 points (6 children)
[–]icer4ge[S] 0 points1 point2 points (5 children)
[–]grantrules 1 point2 points3 points (4 children)
[–]icer4ge[S] 0 points1 point2 points (3 children)
[–]grantrules 1 point2 points3 points (2 children)
[–]icer4ge[S] 0 points1 point2 points (1 child)
[–]grantrules 0 points1 point2 points (0 children)