Closed beardedbob closed 8 years ago
Hi, and thank you for your interest in this project.
Just to be sure, did you successfully run npm install
(or npm update
)? Can you show me the content of the file located to logs/error.log (normally, there is no confidential information in there, but check that before to post it please).
Did you create/update the config.json file with your personal information?
Hi,
No problem, this is what I've done and the log (windows 10 64bit)
ENOENT: no such file or directory, open 'C:\Program Files\nodejs\package.json'
p.s config.json all i had done was remove template from the name, though in the past I have tried to add in some twtich info
When you install Node, it should add the installation folder to your path, so you can launch npm
command in any folder.
I recommand you to extract Live-Stream-Chat-Retriever-master.zip to a clean new folder and to launch npm install
and npm start
into this fresh new folder.
If you don't enter valide data for the other services in config.json, you need to disable them to avoid errors setting enabled field to false for unused services.
{
"host": "http://localhost",
"port": 4242,
"whitelisted_ips": [
"127.0.0.1",
"::1"
],
"live_data": {
"youtube": {
"enabled": false,
"client_id": "MY_CLIENT_ID",
"client_secret": "MY_CLIENT_SECRET",
"redirect_uris": "/youtube/callback"
},
"twitch": {
"enabled": true,
"channel": "MY_CHANNEL"
},
"hitbox": {
"enabled": false,
"channel": "MY_CHANNEL"
},
"beam": {
"enabled": false,
"username": "MY_USERNAME",
"password": "MY_PASSWORD"
},
"dailymotion": {
"enabled": false,
"room": "MY_ROOM",
"grosminet_endpoint": "http://dmchat.dailymotion.com:80"
}
}
}
Hi
I've done that and and extracted the Live-Stream-Chat-Retriever-master.zip into C:\Program Files\nodejs\LiveChat. I've also only made true twitch and added my channel but i'm getting the following debug report, see attached.
thanks for your help so far.
cheers
Rob npm-debug.txt
I saw your npm-debug log, but it doesn't give me enough information to understand why you have an error.
Can you please provide the content of the file located to C:\Program Files\nodejs\LiveChat\logs\error.log (or info.log) instead ?
These logs have been produced with a config.json file that contains invalid information, and all services seem to be enabled.
Can you show me your current config.json file?
It seems to be correct.
I have no time for now, but be sure that I will look at it today with a new fresh install.
I go back to you soon.
thanks for your help so far, will try and reinstall again, it could be permissions but not sure, will let you know if i manage to resolve it if not I look forward to hearing back from you.
Oops, I made a mistake indeed. In the config file, for the Youtube section, redirect_uris field has been renamed into redirect_url. The config file given in the wiki is up to date, but I forgot to update the config.template.json file too :'(
Moreover, this shouldn't crash especially when you disabled Youtube API.
Anyway, I will fix that right now, thank you very much for your report! :+1:
I will close this issue when it will work for you too :)
I've pushed the fix, let me know if it works like expected for you! ;)
Hi,
thanks that's working great for twtich, now i'm having an issue for YT, I've created a Auth 2 but what should the redirect url be? should it be http://localhost:4242/youtube/callback or is this an example for the config.json?
I lost a lot of time on the OAuth 2.0 authentification process used by Youtube Data API. If you use the script in your local machine, the redirect URL should be http://localhost:4242/youtube/callback when you create your Google application like that:
If you use the script on a server, just put the hostname instead of localhost for the redirect URL.
Please note that you don't need to change the redirect URL in the config file (/youtube/callback), because the complete redirect URL will be build using host and port fields.
If you need more information about Youtube section of the config file, you can read the wiki. ;)
Hi,
I've been looking for some scripts to run multiple chats and this looks great but i'm having the following error, can you help?
I run npm start in windows cmd with admin rights and it outputs this into the debug.log