I am doing a project that plays you tube videos as mp3 using html, css, js and nodejs. But when I run node server, I am getting Error: Input stream error: Status code: 403
. I am using ffmpeg for video to audio conversion.
The exact error is:
Server is running on port 3000
FFmpeg error: Error: Input stream error: Status code: 403
at PassThrough. (C:UsersLenovoDesktopMiniproj1node_modulesfluent-ffmpeglibprocessor.js:451:34)
at PassThrough.emit (node:events:531:35)
at PassThrough.emit (node:events:519:28)
at ClientRequest. (C:UsersLenovoDesktopMiniproj1node_modulesminigetdistindex.js:211:28)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:519:28) {
inputStreamError: MinigetError: Status code: 403
at ClientRequest. (C:UsersLenovoDesktopMiniproj1node_modulesminigetdistindex.js:206:27)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
statusCode: 403
}
}
I tried changing api key and tried to run the project in different browsers.