torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻

Home Page:https://torch2424.github.io/live-stream-radio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

e is not defined

konnekkt opened this issue · comments

Hey first of all, thanks for your great work and sorry for my maybe bad english. Can you help me about this:

ReferenceError: e is not defined
at Object. (/home/pi/.nvm/versions/node/v8.14.1/lib/node_modules/live-stream-radio/src/index.js:117:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Best regards from Germany my friend.

@andreasWebDev You speak German correct? Maybe you may be best to help out here if you have the time? 😄

@konnekkt So after looking at the line it says to look at: https://github.com/torch2424/live-stream-radio/blob/master/src/index.js#L112

Seems like there is an error getting your config.json. Did you generate the project yourself, or perhaps try running everything in another directory? This is definitely a bug though, should have given a better error 😢

Hi, thanks for your fast reply. I tried both, generating it by myself and using the standard. I also installed the ffmpeg 4.xx Version. Just something in my config seems to be wrong. After work i will try to get a better log. Best regards my friend

Sounds good! Yeah I think it may be the config, feel free to pass that along whenever you get the chance 😄

@torch2424 gonna write bi-lingual for reference purpose here 😄

@konnekkt Hey, am besten postet du die config.json hier rein, dann kann ich mir das mal anschauen. Achte darauf, deinen Stream-Key rauszunehmen um ihn nicht zu leaken. Wenn du dich mit Englisch schwer tust kannst du gerne auf Deutsch antworten, ich übersetze dann für's Protokoll ^^

-> Hey, it would be the best if you could post the config.json here so I can take a look at it. Keep in mind to remove your stream-key so you don't leak it. If you have problems explaining your issue in English you can answer in German and I'll just translate it for everyone else ^^

Grüß dich Andreas, klar mache ich =) Danke schon mal für deine Hilfe!

config.txt

image

@torch2424 seems to be a normal config, json is valid, no special chars or anything.

@konnekkt kannst du prüfen, ob man die config json lesen und beschreiben kann? Vielleicht ist sie ja schreibgeschützt?

> can you check if the config json is readable and writeable? Maybe file access to it is locked?

@andreasWebDev

Hmmm yeah config seems to be fine. Thats a good point you made about read/write. I still think it's probably and issue with path. Try running live-stream-radio within the project directory that contains the config.json ? Without passing the config path through the CLI flag?

For me, there was an issue with the pathname. A temporary solution would be putting the config.json file in a folder with the same name as your stream within the stream folder.

The issue is with the configJsonPath that is generated in the index. I'm working on a fix, but if anyone wants to try and beat me to it look around line 117.

Actually, I found a super simple fix. It gets appends a path to the present directory so just make sure you run the command from the root directory and it should work. You don't need to make any folders or modify the code.

@snibo13 Oh awesome! Thanks for proposing a fix! Yeah I need to go back and fix this to be more flexible with all the paths. But if it works, it works for now 😂

Thanks, Danke on everyone, ill try it asap =) Have nice holidays

I'll close this issue for clarity, feel free to reopen it if you have any more questions :)