DiscordYoutubeNotifier icon indicating copy to clipboard operation
DiscordYoutubeNotifier copied to clipboard

Problem Spotted

Open RyanCarlGaming opened this issue 4 years ago • 2 comments

i have a problem on the code "UnhandledPromiseRejectionWarning: #<Object>" "UnhandledPromiseRejectionWarning: Unhandled promise rejection." pls help 🥰

RyanCarlGaming avatar Feb 25 '21 06:02 RyanCarlGaming

Did you find what caused it? having the same problem

Villhahallon avatar Mar 07 '21 22:03 Villhahallon

i have a problem on the code "UnhandledPromiseRejectionWarning: #" "UnhandledPromiseRejectionWarning: Unhandled promise rejection." pls help 🥰

I believe you have exceeded your YouTube Data V3 API quota of 10,000 requests which you can check on console.cloud.google.com by clicking into API Library -> YouTube Data V3 -> Quotas. This happened to me within a few hours of running the script yesterday, with 8 channels in the config file. I found this, which if you add to the end of the .js file, should allow you to see the reason for the UnhandledPromiseRejectionWarning:

process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); // application specific logging, throwing an error, or other logic here });

You can increase the check interval on line 17 of the .js by changing setInterval(check, 20... to (to make it 3 minutes): setInterval(check, 180...

cmjpen avatar Jul 10 '21 23:07 cmjpen