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

Input Stream: This video is unavailable #739

Closed
OORDINARY12 opened this issue Oct 23, 2020 · 4 comments
Closed

Input Stream: This video is unavailable #739

OORDINARY12 opened this issue Oct 23, 2020 · 4 comments

Comments

@OORDINARY12
Copy link

OORDINARY12 commented Oct 23, 2020

happend when searching vidode's title

`Error: input stream: This video is unavailable

at downloadFromInfoCallback (C:\Users\Administrator\Desktop\dc\node_modules\ytdl-core\lib\index.js:76:26)

at C:\Users\Administrator\Desktop\dc\node_modules\ytdl-core\lib\index.js:18:5

at runMicrotasks (<anonymous>)

at processTicksAndRejections (internal/process/task_queues.js:97:5)

`

@addict67
Copy link

addict67 commented Oct 23, 2020

This error happens mostly when the video is private or region restricted
Duplicate of #658

@fent
Copy link
Owner

fent commented Oct 24, 2020

are you getting this for a specific video? usually, the error is more specific, it should say something like "private" or "not available in this region".

@arcovoltaico
Copy link

arcovoltaico commented Oct 25, 2020

I'm in London testing with this A.Cooper video: jXZcJojTucg . It fails 2 in 3 times. So not a very consistent error.

This video is unavailable
    at downloadFromInfoCallback 

Debugging it, it happens when the formats returned by getInfo is an empty array.

Also curious why

try {
          const stream = ytdl.downloadFromInfo(info, downloadOptions).pipe(file);
        } catch (e) {}

does not catch the error.

@fent
Copy link
Owner

fent commented Oct 25, 2020

Also curious why

try {
          const stream = ytdl.downloadFromInfo(info, downloadOptions).pipe(file);
        } catch (e) {}

does not catch the error.

ytdl returns a stream, streams are not promises, they emit an error event

@fent fent closed this as completed in ceca86e Oct 31, 2020
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

4 participants