mairlist / streammonitor

An Icecast/Shoutcast stream monitor and silence detector
30 stars 15 forks source link

Can't get /value/<key> #3

Closed triangle-stream closed 4 years ago

triangle-stream commented 4 years ago

Hello,

I would like to say thank you for this tool.

I'm trying to use it and everything works if I call curl http://localhost:8080 and http://localhost:8080/value/status. When i try to get another like /value/silenceduration (or any other key) I receive the following;

RangeError [ERR_HTTP_INVALID_STATUS_CODE] [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: null
    at ServerResponse.writeHead (_http_server.js:246:11)
    at ServerResponse._implicitHeader (_http_server.js:237:8)
    at write_ (_http_outgoing.js:660:9)
    at ServerResponse.end (_http_outgoing.js:773:5)
    at ServerResponse.send (/app/node_modules/express/lib/response.js:221:10)
    at ServerResponse.sendStatus (/app/node_modules/express/lib/response.js:359:15)
    at /app/app.coffee:90:7
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at /app/node_modules/express/lib/router/index.js:281:22
    at param (/app/node_modules/express/lib/router/index.js:354:14)
    at param (/app/node_modules/express/lib/router/index.js:365:14)
    at Function.process_params (/app/node_modules/express/lib/router/index.js:410:3)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/app/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)
    at /app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at query (/app/node_modules/express/lib/middleware/query.js:45:5)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)
    at /app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at Function.handle (/app/node_modules/express/lib/router/index.js:174:3)
    at Function.handle (/app/node_modules/express/lib/application.js:174:10)
    at Server.app (/app/node_modules/express/lib/express.js:39:9)
    at Server.emit (events.js:315:20)
    at parserOnIncoming (_http_server.js:779:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)

Am I calling the wrong key or is there something I can do to solve this? Running in Ubuntu 18.04 LTS.

Thank you, Marco.