Node-ytdl-core: Error: The YouTube API key you provided was not a string.

Created on 24 Mar 2018  路  10Comments  路  Source: fent/node-ytdl-core

IS my API key wrong? I get this error: Error: The YouTube API key you provided was not a string.

invalid

Most helpful comment

Never mind, fixed it

All 10 comments

Could you post the stack trace, and what video did this happen in?

Same, I get this error:
C:\Users\HPC\Desktop\EliteBotnode_modules\simple-youtube-api\src\index.js:26
if (typeof key !== 'string') throw new Error('The YouTube API key you provided was not a string.');
^

Error: The YouTube API key you provided was not a string.
at new YouTube (C:\Users\HPC\Desktop\EliteBotnode_modules\simple-youtube-api\src\index.js:26:44)
at Object. (C:\Users\HPC\Desktop\EliteBot\centre.js:34:18)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:282:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Never mind, fixed it

i have this issue also but yet my youtube key is correct

this isn't related to ytdl since it does not use the youtube api

Never mind, fixed it

how did you fixed it?

Never mind, fixed it

howww

Non importa, aggiustalo

How bro, pls...

Never mind, fixed it

can you tell me how you fixed it?

how u fixed this bug

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barbhackk picture barbhackk  路  3Comments

atherdon picture atherdon  路  5Comments

GamerXD4 picture GamerXD4  路  5Comments

HcgRandon picture HcgRandon  路  7Comments

CheweyZ picture CheweyZ  路  6Comments