Problem Spotted
i have a problem on the code "UnhandledPromiseRejectionWarning: #<Object>" "UnhandledPromiseRejectionWarning: Unhandled promise rejection." pls help 🥰
Did you find what caused it? having the same problem
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...