Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in audio stream for xxxx: MinigetError: Status code: 403 #1267

Open
timfong888 opened this issue Dec 16, 2023 · 2 comments
Open

Error in audio stream for xxxx: MinigetError: Status code: 403 #1267

timfong888 opened this issue Dec 16, 2023 · 2 comments

Comments

@timfong888
Copy link

Before creating an issue, please try the following

  • Are you on the latest version of ytdl-core?
    • To check, run npm ls ytdl-core
    • If you're using a bot or application that depends on ytdl-core, look at the bottom of the readme on how to update the library
    • Otherwise, if you're directly importing ytdl-core, to install the latest version, run npm install ytdl-core@latest
  • Search the list of issues for a possible duplicate.
    • If there is a duplicate issue thread, but it's closed, only post in it if it's been active in the past month. Otherwise, creating a new issue thread is fine.
  • If your question is about using the library for a specific use case, check out the examples folder.

Otherwise, feel free to open an issue

ytdl-core@4.11.5

DEFAULT 2023-12-16T18:36:01.748133Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] Error in audio stream for jzh3KGq4tqg: MinigetError: Status code: 403
DEFAULT 2023-12-16T18:36:01.748156Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at ClientRequest. (/workspace/node_modules/miniget/dist/index.js:206:27)
DEFAULT 2023-12-16T18:36:01.748163Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at Object.onceWrapper (node:events:632:26)
DEFAULT 2023-12-16T18:36:01.748169Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at ClientRequest.emit (node:events:517:28)
DEFAULT 2023-12-16T18:36:01.748176Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at ClientRequest.emit (node:domain:552:15)
DEFAULT 2023-12-16T18:36:01.748184Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:700:27)
DEFAULT 2023-12-16T18:36:01.748190Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
DEFAULT 2023-12-16T18:36:01.748197Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at TLSSocket.socketOnData (node:_http_client:541:22)
DEFAULT 2023-12-16T18:36:01.748202Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at TLSSocket.emit (node:events:517:28)
DEFAULT 2023-12-16T18:36:01.748210Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at TLSSocket.emit (node:domain:552:15)
DEFAULT 2023-12-16T18:36:01.748216Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] at addChunk (node:internal/streams/readable:335:12) {
DEFAULT 2023-12-16T18:36:01.748222Z [resource.labels.functionName: videoIdToMP4] [labels.executionId: tnjyy3mq12vd] statusCode: 403

// const audioStream = ytdl(videoUrl, { quality: lowestQualityFormat.itag });
        const audioStream = ytdl(videoUrl, { quality: lowestQualityFormat.itag, requestOptions: { agent: agent } });

        const firebaseStream = file.createWriteStream({
            metadata: {
                contentType: lowestQualityFormat.mimeType,
            },
        });
@timfong888
Copy link
Author

Note: I set up a proxy and used the URL of the proxy along with username and password, but I still get this issue.

@Keito-Klein
Copy link

Any solution to fix this error?

I tried use this package and got error
InputStreamError: MinigetError: status code 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants