Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Convert url youtube to mp3 has error #265

@duongdung13

Description

@duongdung13

Describe the bug and how to reproduce it

videoStream ::: PassThrough {
_events: {
close: undefined,
error: undefined,
prefinish: [Function: prefinish],
finish: undefined,
drain: undefined,
data: undefined,
end: undefined,
readable: undefined
},
_readableState: ReadableState {
highWaterMark: 524288,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 1048844
},
_writableState: WritableState {
highWaterMark: 524288,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 1,
_destroy: [Function (anonymous)],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
}
Found 2 successful responses from clients
WARNING: Could not parse decipher function.
Stream URLs will be missing.
Please report this issue by uploading the "1749022112750-player-script.js" file on #144.
WARNING: Could not parse n transform function.
Please report this issue by uploading the "1749022112755-player-script.js" file on #144.
node:events:502
throw er; // Unhandled 'error' event
^

Error: Input stream error: Status code: 403
at PassThrough. (/Users/dungduong/code/develop-api/node_modules/.pnpm/fluent-ffmpeg@2.1.3/node_modules/fluent-ffmpeg/lib/processor.js:451:34)
at PassThrough.emit (node:events:536:35)
at PassThrough.emit (node:events:524:28)
at ClientRequest. (/Users/dungduong/code/develop-api/node_modules/.pnpm/miniget@4.2.3/node_modules/miniget/src/index.ts:259:18)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at TLSSocket.socketOnData (node:_http_client:544:22)
at TLSSocket.emit (node:events:524:28)
Emitted 'error' event on FfmpegCommand instance at:
at emitEnd (/Users/dungduong/code/develop-api/node_modules/.pnpm/fluent-ffmpeg@2.1.3/node_modules/fluent-ffmpeg/lib/processor.js:422:16)
at PassThrough. (/Users/dungduong/code/develop-api/node_modules/.pnpm/fluent-ffmpeg@2.1.3/node_modules/fluent-ffmpeg/lib/processor.js:453:15)
at PassThrough.emit (node:events:536:35)
[... lines matching original stack trace ...]
at TLSSocket.socketOnData (node:_http_client:544:22) {
inputStreamError: MinigetError: Status code: 403
at ClientRequest. (/Users/dungduong/code/develop-api/node_modules/.pnpm/miniget@4.2.3/node_modules/miniget/src/index.ts:255:19)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at TLSSocket.socketOnData (node:_http_client:544:22)
at TLSSocket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5) {
statusCode: 403
}
}

Node.js v20.19.2

Environment

  • @distube/ytdl-core version:
  • Node.js version: v20.19.2
  • Operating system: MacOS

1749020602324-player-script.js.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions