Skip to content

10.5.0 Missing comments_entry_point_header data sometimes for the same video #782

Open
@PikachuEXE

Description

@PikachuEXE

Steps to reproduce

  • Save following script into a file e.g. script.js
  • Install youtube.js (I did this in FreeTube project folder)
  • node script.js
const { Innertube } = require('youtubei.js')

async function createInnertube(options = { withPlayer: false, location: undefined, safetyMode: false, clientType: undefined, generateSessionLocally: true }) {
  return await Innertube.create({
    enable_safety_mode: false,
    generate_session_locally: !!options.generateSessionLocally
  })
}

console.info('hi');

let id = 'P0uzckVfO_M';

(async () => {
  const webInnertube = await createInnertube({ withPlayer: true, generateSessionLocally: false })

  const info = await webInnertube.getInfo(id)

  console.info('info.comments_entry_point_header', info.comments_entry_point_header)
})()

Failure Logs

hi
info.comments_entry_point_header undefined

Expected behavior

See lower
image

Current behavior

See upper
image

Version

Default

Anything else?

No idea if YT doing some AB testing or anti-scraping/bot stuff
But this only started happening is last few days

Looking at the response for https://www.youtube.com/youtubei/v1/next comments-entry-point seems missing
No idea if bug or data moved somewhere
image

Update 1 - Add response SC when comments-entry-point present
image

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