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

10.5.0 Missing comments_entry_point_header data sometimes for the same video #782

Open
4 tasks done
PikachuEXE opened this issue Oct 16, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@PikachuEXE
Copy link

PikachuEXE commented Oct 16, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant