question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Status code 404 - getting playlists

See original GitHub issue

Using getInfo() with a playlist URL returns the following error. Is this not implemented?

using the youtube-dl package allows this feature to return an array with info of each video.

Error: Status code 404 at ClientRequest.<anonymous> (C:\Users\jackf\Dropbox\Programming\Discord Bots\Neo\node_modules\ytdl-core\lib\request.js:33:18) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23) at TLSSocket.socketOnData (_http_client.js:362:20) at emitOne (events.js:96:13) at TLSSocket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at TLSSocket.Readable.push (_stream_readable.js:134:10)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
karimsacommented, Jan 31, 2017

I’m getting this error when trying to fetch a video, although it was working perfectly yesterday.

Code:

var fs = require('fs')
    , ytdl = require('ytdl-core')

ytdl('http://youtube.com/watch?v=CovpoxCXCTw')
  .pipe(fs.createWriteStream('./audio.mp3'))

Stack trace:

Error: Status code 404
    at ClientRequest.<anonymous> (node_modules/ytdl-core/lib/request.js:33:18)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at Socket.socketOnData (_http_client.js:362:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
0reactions
TimeForANinjacommented, Jun 22, 2021

@myselfdsk @javalsai @manhbi18112005 pls keep the discussion in the mentioned #939

Read more comments on GitHub >

github_iconTop Results From Across the Web

404 error when getting track/album/playlist/artist data #795
Hi, a lot of users started reporting to me that they are getting 404 errors. The url to the song is valid, We've...
Read more >
iOS9 : Responding with a 404/503 error to a playlist ...
For instance upon getting a 404 error, the player would be expected to skip the missing playlist and just continue playing with the...
Read more >
Request failed with status code 404 Playing Tracks
I'm working on a streaming application using the Spotify Web Player API. I'm running into an issue where accounts from the UK and...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site
The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is...
Read more >
How to Find and Fix 404 Errors
A 404 error is a code that indicates a requested page cannot be found. Whenever a page loads in a browser, it has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found