torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻
https://torch2424.github.io/live-stream-radio/
240 stars 64 forks source link

TypeError: Cannot read property 'endsWith' of undefined #173

Open bboymega opened 2 years ago

bboymega commented 2 years ago

Finding/Optimizing video... 📺

(node:108321) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'endsWith' of undefined at getVideo (/root/live-stream-radio/src/stream/stream.js:40:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5) at async module.exports (/root/live-stream-radio/src/stream/stream.js:93:25) at async Object.start (/root/live-stream-radio/src/stream/index.js:97:5) (node:108321) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

torch2424 commented 2 years ago

@M3GABOY Hello! So, this seems like you may have an error with your config. I'd maybe start again from a fresh config: https://github.com/torch2424/live-stream-radio/blob/master/src/generate/template/config.json

Also, feel free to look at documentation here: https://torch2424.github.io/live-stream-radio/#/