Node-ytdl-core: Error: Could not extract signature deciphering actions

Created on 13 Aug 2018  路  4Comments  路  Source: fent/node-ytdl-core

So I simply downloaded ytdl-core, grabbed the usage example, which is:
const ytdl = require('ytdl-core')
const fs = require('fs')

ytdl('http://www.youtube.com/watch?v=A02s8omM_hI')
.pipe(fs.createWriteStream('video.flv'));

then saved it as aaa.js, and ran it using
node aaa
and I get an error which is

Error: Could not extract signature deciphering actions
at request (directory_removed_because_privacy_stuff\node_modules\ytdl-core\lib\sig.js:36:18)
at IncomingMessage.res.on (directory_removed_because_privacy_stuff\node_modules\miniget\lib\index.js:76:11)
at IncomingMessage.emit (events.js:164:20)
at endReadableNT (_stream_readable.js:1054:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

I then do what the guide also says, and I do the mocha test, which returns:
Try downloading videos without mocking
Regular video
1) "before each" hook for "Request status code is not 403 Forbidden"

0 passing (73ms)
1 failing

1) Try downloading videos without mocking
"before each" hook for "Request status code is not 403 Forbidden":
TypeError: Cannot read property 'clear' of undefined
at Context.beforeEach (test.js:22:20)
This is suggesting to me that the signature is undefined.

Any ideas on how to fix this?

Also sorry if this isn't helpful, this is my first time reporting an issue on GitHub

not a bug

Most helpful comment

Guess we should go for a issue template asking for general thinks like: OS, node Version, ytdl-core Version, Video if any, guide to reproduce the error if possible
and whether the user did try to reinstall ytdl-core at latest version

All 4 comments

What version of ytdl-core do you have? Make sure you're on the latest version

npm install ytdl-core@latest

Okay, I did that and it worked
Thanks for your help, sorry if I wasted your time or anything on my lack of knowledge about npm

Guess we should go for a issue template asking for general thinks like: OS, node Version, ytdl-core Version, Video if any, guide to reproduce the error if possible
and whether the user did try to reinstall ytdl-core at latest version

Guess we should go for a issue template asking for general thinks like: OS, node Version, ytdl-core Version, Video if any, guide to reproduce the error if possible
and whether the user did try to reinstall ytdl-core at latest version

It's done :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FireController1847 picture FireController1847  路  5Comments

r0hin picture r0hin  路  3Comments

jan-tennert picture jan-tennert  路  6Comments

HcgRandon picture HcgRandon  路  7Comments

gohjoseph picture gohjoseph  路  4Comments