-
Notifications
You must be signed in to change notification settings - Fork 723
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
error 500 when trying to download a specific video #163
Comments
@fent any idea when this could be fixed? |
Don't know what is causing this so can't say. |
I believe there is something wrong with the audio channel, i'm not 100% sure of that tho. I managed to catch the error thus avoiding a crash by doing this:
|
That just catches the error, avoiding the node process from crashing. But there still is an error.. |
-Quality defaults to highest in chooseFormat function when users do not pass a quality option. -Sometimes the highest quality video has an invalid or inaccessible URL that cannot be downloaded. -This fixes the issue by performing a request to the URL and setting a fallback quality option on failure so a user can still download a video. -Also, included a new format called baseline. -Resolves fent#163.
Found the issue and patched it. Some of the highest quality video URLs are sometimes not accessible for whatever reason on Youtube. It even happened with my own parser that I tested. Made a PR that checks the request and downloads the baseline video if the highest quality fails to download. |
i think i managed to break it further. I applied your patch and got stuck at this one: http://www.youtube.com/watch?v=NEn1ayFOD28
Is this related? |
Yep, that's the main reason, it's almost 3 MB last I checked. Much of its features aren't used by ytdl-core either. |
Hmm, it doesn't look like it's erroring anymore. Can you try yourself again? |
Nevermind, bad test. |
Tested it again and same error. :(. What I can't figure out is why this only occurs for this video or a very small subset of them. |
Processing the url seems fine, but it is the hosting url that gets the HTTP error 500 |
Did you tried to change the format of the file from .flv to .mp4 ? |
This problem not only happened to youtube-dl test command: |
I've been testing this, itag 22 is the only format returning a 500 error. All others work, at least for this video. #212 is similar, that itag 22 errors, but the error is different. a possible workaround could be having a I'm thinking making the syntax like
it might also be worth it to have a |
kind of a weird "fix". basically, default sorting of formats are re-ordered so that those with no if you think this sorting needs more tweaking or disagree, let me know or submit a PR. |
Hello there,
I am trying to move away from youtube-dl for a specific issue I found and also due to the author not actively maintaining the lib anymore.
I see your project is getting updated so i wanted to test it out.
Unfortunately I found out the same issue on your project which I invite you to try.
Try downloading http://www.youtube.com/watch?v=fxlbIS8CoW8 using best quality (by default)
This should suffice to break the library. for some unknown reasons this specific video and several others will not work.
I am downloading thousand of vidoes for a project and while this might happen rarely, it happens quite a lot for me.
Let me know if you need further details to reproduce the bug.
Hopefully you'll find the reason, i wasn't able to.
Best regards,
Nikooo777
The text was updated successfully, but these errors were encountered: