node-ytdl-core: Error: status code 403
Did youtube update their api?
My code worked yesterday.
The error:
[9020:0217/192331:ERROR:nw_shell.cc(324)] Error: status code 403
at Request.<anonymous> (app_path\node_modules\ytdl-core\lib\index.js:67:16)
at Request.emit (events.js:116:17)
at Request.onResponse (app_path\node_modules\ytdl-core\node_modules\request\request.js:958:10)
at ClientRequest.g (events.js:202:16)
at ClientRequest.emit (events.js:116:17)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:420:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:113:23)
at Socket.socketOnData (_http_client.js:311:20)
at Socket.emit (events.js:116:17)
at readableAddChunk (_stream_readable.js:164:16)
[9020:0217/192331:INFO:CONSOLE(94)] "Uncaught Error: status code 403", source: events.js (94)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 37 (11 by maintainers)
Just had this error too, my code worked just fine and then it doesnt, tried to change the api I use to search in yt and still got error 403. So I did what @drepram said, and generated another api key, and now it works again. Thank you @drepram !
Here is what I got