rfbomb / twitch-watcher Goto Github PK
View Code? Open in Web Editor NEWThis project forked from d3vl0per/twitch-watcher
Automatic watching the twitch to get Valorant drop
License: MIT License
This project forked from d3vl0per/twitch-watcher
Automatic watching the twitch to get Valorant drop
License: MIT License
In the app.js at line 102 you are initializing the var UserTimeZone with the Enviroment Variable ChannelName_3:
UserTimeZone = (process.env.ChannelName_3 || 'America/New_York');
So if the ChannelName_3 Var is used in e.g. the docker-compose.yml, the twitch-watcher will not start: "Error: RangeError: Invalid time zone specified: warframe"
This only affects Docker-Container, because normally the code in Line 119 would be executed:
UserTimeZone = (await UserSettings.ReadConfigSetting('UserTimeZone') || 'America/New_York');
UserTimeZone could then also be mentioned in the docker-compose-example.yml file :)
=========================
π Checking config file...
β
Env config found
=========================
π± Launching browser...
π§ Setting User-Agent...
π§ Setting auth token...
β°Setting timeouts...
----------- Loaded Variables ------------
ChannelName_1 - nmplol
ChannelName_2 -
ChannelName_3 -
streamersUrl - https://www.twitch.tv/directory/game/iRacing
TimeZone - America/New_York
minWatching - 15
maxWatching - 30
IgnoreRandomChannels - true
----------- End of Loaded Variables ------------
π€¬ Error: FetchError: request to https://api.twitch.tv/helix/streams failed, reason: getaddrinfo EAI_AGAIN api.twitch.tv
at ClientRequest. (/usr/src/app/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:432:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
message: 'request to https://api.twitch.tv/helix/streams failed, reason: getaddrinfo EAI_AGAIN api.twitch.tv',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN'
}
(node:25) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'error' of undefined
at Object.TestAPIToken (/usr/src/app/HelixAPI.js:98:14)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async SetupVariables (/usr/src/app/app.js:156:9)
at async main (/usr/src/app/app.js:644:3)
(node:25) 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: 1)
(node:25) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.