Node-ytdl-core: Error: This video is unavailable

Created on 9 Jan 2018  路  5Comments  路  Source: fent/node-ytdl-core

YTDL.getInfo requests failing with the follow error:
at request ([omitted]/node_modules/ytdl-core/lib/info.js:220:16) at IncomingMessage.res.on ([omitted]/node_modules/miniget/lib/index.js:75:11) at emitNone (events.js:120:20) at IncomingMessage.emit (events.js:218:7) at endReadableNT (_stream_readable.js:1054:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9)

bug

Most helpful comment

This issue can be fixed by remove fromEmbed ? {} : { el: 'info' } from https://github.com/fent/node-ytdl-core/blob/master/lib/info.js#L135 Looks like Google has removed this parameter as I get the follow error:

{ reason: 'Invalid parameters.',
  errorcode: '2',
  status: 'fail',
}

All 5 comments

This issue can be fixed by remove fromEmbed ? {} : { el: 'info' } from https://github.com/fent/node-ytdl-core/blob/master/lib/info.js#L135 Looks like Google has removed this parameter as I get the follow error:

{ reason: 'Invalid parameters.',
  errorcode: '2',
  status: 'fail',
}

see #260 for a quick hacky fix that you can use to get stuff working. It isn't good enough to be merged but it will hopefully get @fent on the right track.

Hey,

is this issue fixed? I am still getting this error.

Thanks.

This was fixed, but the same error message could show up again for a new but similar issue. Feel free to open up a new issue with your stack trace and a youtube link where it happens.

still getting error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r0hin picture r0hin  路  3Comments

CheweyZ picture CheweyZ  路  6Comments

adamwoo2444 picture adamwoo2444  路  5Comments

barbhackk picture barbhackk  路  3Comments

ajgeiss0702 picture ajgeiss0702  路  5Comments