Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Spotted #5

Open
RyanCarlGaming opened this issue Feb 25, 2021 · 2 comments
Open

Problem Spotted #5

RyanCarlGaming opened this issue Feb 25, 2021 · 2 comments

Comments

@RyanCarlGaming
Copy link

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

@Villhahallon
Copy link

Did you find what caused it?
having the same problem

@cmjpen
Copy link

cmjpen commented Jul 10, 2021

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants