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

There are errors outside of loading errors that will cause an infinite loop of trying to redownload a song that has errored out #5

Open
CombustibleToast opened this issue Jun 19, 2023 · 0 comments

Comments

@CombustibleToast
Copy link
Owner

A simple string check should solve the problem. Here's one that I just experienced:


Error: Sign in to confirm your age
    at exports.playError (/home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/utils.js:155:12)
    at downloadFromInfoCallback (/home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/index.js:73:19)
    at /home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/index.js:20:5
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
MUSIC - [INFO] Musical Modron: buffering -> idle
Song errored
Song errored out, downloading song from 315ms, 43s, 1m, 0h (315)
Options:
{ filter: 'audioonly', begin: '315ms, 43s, 1m, 0h' }
MUSIC - [INFO] Musical Modron: idle -> buffering
MUSIC - [WARN] Musical Modron encountered an error:
Error: Sign in to confirm your age
    at exports.playError (/home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/utils.js:155:12)
    at downloadFromInfoCallback (/home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/index.js:73:19)
    at /home/pi/bots/CAROLINE/node_modules/ytdl-core/lib/index.js:20:5
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
MUSIC - [INFO] Musical Modron: buffering -> idle
Song errored
Song errored out, downloading song from 354ms, 43s, 1m, 0h (354)
Options:
{ filter: 'audioonly', begin: '354ms, 43s, 1m, 0h' }
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

1 participant