2.17.0 breaks when using listStreams and probably listBroadcasts and stopBroadcast as well,, we have gone back to 2.16.0 in the meantime.
It seems to be related to the switch from request to needle as needle automatically parses json unless options.parse is set to false and as far is I can see it is not set at the moment in version 2.17.0, which leads to JSON.parse() throwing errors. You could either set parse:false on the specific request or simply change the defaults for all request by setting _parseresponse: false: on the defaults. Read more here: https://github.com/tomas/needle/#overriding-defaults
Another option could be to simply remove the JSON.parse() in the requestCallbacks.
2.17.0 breaks when using listStreams and probably listBroadcasts and stopBroadcast as well,, we have gone back to 2.16.0 in the meantime.
It seems to be related to the switch from request to needle as needle automatically parses json unless options.parse is set to false and as far is I can see it is not set at the moment in version 2.17.0, which leads to JSON.parse() throwing errors. You could either set parse:false on the specific request or simply change the defaults for all request by setting _parseresponse: false: on the defaults. Read more here: https://github.com/tomas/needle/#overriding-defaults
Another option could be to simply remove the JSON.parse() in the requestCallbacks.