Skip to content

16.0.1 Error: Request to https://www.youtube.com/youtubei/v1/get_transcript?prettyPrint=false&alt=json failed with status 400 #1102

@gr0go

Description

@gr0go

Steps to reproduce

  1. Call info.getTranscript(); in nodejs server
try {
    const yt = await Innertube.create({
      generate_session_locally: true,
      lang: language,
      cookie: COOKIE
    });

    const info = await yt.getInfo(video_url);

    title = info.primary_info?.title ? info.primary_info?.title.toString() : '';

    const defaultTranscriptInfo = await info.getTranscript();

console.log(defaultTranscriptInfo)

} catch(e) {
console.log(e)
}

Failure Logs

Error: Request to https://www.youtube.com/youtubei/v1/get_transcript?prettyPrint=false&alt=json failed with status 400

Expected behavior

it supposed to return the transcript

Current behavior

It returns that error since last week , sometimes it works after a couple of tries like 10+ tries in BOTH production and development

Version

Default

Anything else?

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions