nginx-rtmp-monitoring icon indicating copy to clipboard operation
nginx-rtmp-monitoring copied to clipboard

i got this error

Open petrichbg opened this issue 7 years ago • 8 comments

node server.js buffer.js:74 throw new Error( ^

Error: If encoding is specified then the first argument must be a string at new Buffer (buffer.js:74:13) at new FetchStream (/var/www/galaxy.net-plus.bg/html/node_modules/fetch/lib/fetch.js:41:27) at fetchUrl (/var/www/galaxy.net-plus.bg/html/node_modules/fetch/lib/fetch.js:386:23) at Timeout._onTimeout (/var/www/galaxy.net-plus.bg/html/server.js:80:3) at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5)

can u help me ?

petrichbg avatar Feb 26 '17 14:02 petrichbg

@petrichbg what is config file you using share it with me?

omar-haris avatar Feb 27 '17 09:02 omar-haris

{ "site_title":"RTMP Monitoring", "http_server_port":9991, "rtmp_server_refresh":3000, "rtmp_server_timeout":15000, "rtmp_server_url":"http://galaxy.net-plus.bg:8000/stat.xml", "rtmp_server_stream_url":"rtmp://http://galaxy.net-plus.bg:1935/live/", "language":"en", "template":"default", "version":"1.0.0" }

petrichbg avatar Feb 27 '17 12:02 petrichbg

maybe you need to add stream to your sever your config is ok

omar-haris avatar Feb 28 '17 07:02 omar-haris

Any solution on this ?

maddygoround avatar Apr 21 '17 11:04 maddygoround

same here

Max01010101010101 avatar May 06 '17 03:05 Max01010101010101

yes ,same error here. The url exists, but always showing me buffer.js:74 throw new Error( ^

Error: If encoding is specified then the first argument must be a string at new Buffer (buffer.js:74:13) at new FetchStream (M:\nginx-rtmp-monitoring\node_modules\fetch\lib\fetch.js:41:27) at fetchUrl (M:\nginx-rtmp-monitoring\node_modules\fetch\lib\fetch.js:386:23) at Timeout._onTimeout (M:\nginx-rtmp-monitoring\server.js:80:3) at ontimeout (timers.js:386:14) at tryOnTimeout (timers.js:250:5) at Timer.listOnTimeout (timers.js:214:5)

My config file is :

{ "site_title":"RTMP Monitoring", "http_server_port":9991, "rtmp_server_refresh":3000, "rtmp_server_timeout":15000, "rtmp_server_url":"http://localhost/stat.xml", "rtmp_server_stream_url":"rtmp://localhost/live/", "language":"en", "template":"default", "version":"1.0.0" }

url http://localhost/stat.xml and rtmp://localhost/live/ acceptable.

GinRyan avatar Sep 13 '17 09:09 GinRyan

petrichbg you have rtmp://html://

RickyRatchet1 avatar Sep 27 '17 03:09 RickyRatchet1

from monitor folder check for versions # npm -v # node -v I did not show node however i did show nodejs so nodejs server.js worked for me

RickyRatchet1 avatar Sep 27 '17 13:09 RickyRatchet1