fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.47k stars 790 forks source link

Error 403: Forbidden #1299

Open c377um opened 2 months ago

c377um commented 2 months ago

The error message AudioPlayerError: Status code: 403 indicates that the HTTP request made by the miniget module (used internally by ytdl-core to fetch YouTube video information or audio streams) received a 403 Forbidden response from the server.

AudioPlayerError: Status code: 403 at ClientRequest. (/home/DCBot/node_modules/miniget/dist/index.js:206:27) at Object.onceWrapper (node:events:632:26) at ClientRequest.emit (node:events:517:28) at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:700:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at TLSSocket.socketOnData (node:_http_client:541:22) at TLSSocket.emit (node:events:517:28) at addChunk (node:internal/streams/readable:368:12) at readableAddChunk (node:internal/streams/readable:341:9) at Readable.push (node:internal/streams/readable:278:10) { resource: AudioResource { playStream: OggDemuxer { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 6, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, _remainder: null, _head: null, _bitstream: null,

  [Symbol(kCallback)]: null
},
edges: [ [Object], [Object] ],
metadata: null,
volume: undefined,
encoder: undefined,
audioPlayer: AudioPlayer {
  _events: [Object: null prototype],
  _eventsCount: 3,
  _maxListeners: undefined,
  _state: [Object],
  subscribers: [Array],
  behaviors: [Object],
  debug: [Function (anonymous)],
  [Symbol(kCapture)]: false
},
playbackDuration: 0,
started: false,
silencePaddingFrames: 5,
silenceRemaining: -1

} } Failed to follow up: The reply to this interaction has not been sent or deferred.

DanielBUBU commented 2 months ago

Same, even with cookie

Lampropoulosss commented 2 months ago

Same here guys

kevinmnm commented 2 months ago

same

phucngo2 commented 2 months ago

Got the same issue 🥲

mitsuki31 commented 2 months ago

Still discussing this same issue on #1295

nasserakhter commented 2 months ago

Get same issue when attempting to get a URL from the library

marcinheniborg commented 2 months ago

same issue here

solcabz commented 1 month ago

hi is there any solution on this

mitsuki31 commented 1 month ago

hi is there any solution on this

There's a quick fix for this, here. But not a few people either to choose another similar module, like @distube/ytdl-core.