Closed antoine-pous closed 7 years ago
How often do you get 200
response from Twitch with null
streams?
As I remember, it should be an empty array.
Here is the related error:
25/4 18:56:20 [29949] - error: TypeError: Cannot read property 'forEach' of null
at /node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:78:36
at transform (/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:105:27)
at /node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:76:35
at fn (/node_modules/async/lib/async.js:746:34)
at /node_modules/async/lib/async.js:1213:16
at /node_modules/async/lib/async.js:166:37
at /node_modules/async/lib/async.js:706:43
at /node_modules/async/lib/async.js:167:37
at /node_modules/async/lib/async.js:1209:30
at /node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:52:13
at /node_modules/async/lib/async.js:52:16
at /node_modules/async/lib/async.js:1209:30
at Request._callback (/node_modules/nodebb-plugin-ns-twitch-monitor/plugin/twitch/api.js:45:21)
at Request.self.callback (/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:194:7)
at Request.<anonymous> (/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:191:7)
at IncomingMessage.<anonymous> (/node_modules/request/request.js:1091:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:188:7)
The issue should be resolved with the latest patch update.
Sometime NodeBB crashes when stream is interrupted, this cause a wrong payload format.