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

9.4.0 [YOUTUBEJS][Parser]: InnertubeError: Something went wrong at PlayerStoryboardSpec! #671

Open
3 of 4 tasks
dumbmoron opened this issue Jun 20, 2024 · 0 comments
Open
3 of 4 tasks
Labels
bug Something isn't working

Comments

@dumbmoron
Copy link

dumbmoron commented Jun 20, 2024

Steps to reproduce

This happens very randomly, and I'm not sure what the cause is, but I believe the latest version is also affected, since nothing changed in this particular call path AFAICT.

  1. Create an Innertube instance authenticated with an account via OAuth2 to Innertube
  2. Call getBasicInfo() with some ID and ANDROID client
  3. Error is thrown in some cases (not exactly sure what the cause or problem is here, it happens very sporadically). I will try to get the data here if it happens again.

Failure Logs

[YOUTUBEJS][Parser]: InnertubeError: Something went wrong at PlayerStoryboardSpec!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
    at ERROR_HANDLER (file:///app/node_modules/youtubei.js/dist/src/parser/parser.js:48:31)
    at parseItem (file:///app/node_modules/youtubei.js/dist/src/parser/parser.js:393:13)
    at Module.parseResponse (file:///app/node_modules/youtubei.js/dist/src/parser/parser.js:335:25)
    at new MediaInfo (file:///app/node_modules/youtubei.js/dist/src/core/mixins/MediaInfo.js:17:29)
    at new VideoInfo (file:///app/node_modules/youtubei.js/dist/src/parser/youtube/VideoInfo.js:38:9)
    at Innertube.<anonymous> (file:///app/node_modules/youtubei.js/dist/src/Innertube.js:83:20)
    at Generator.next (<anonymous>)
    at fulfilled (/app/node_modules/tslib/tslib.js:166:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  info: {
    stack: 'TypeError [ERR_INVALID_URL]: Invalid URL\n' +
      '    at new NodeError (node:internal/errors:405:5)\n' +
      '    at new URL (node:internal/url:676:13)\n' +
      '    at new PlayerStoryboardSpec (file:///app/node_modules/youtubei.js/dist/src/parser/classes/PlayerStoryboardSpec.js:6:21)\n' +
      '    at parseItem (file:///app/node_modules/youtubei.js/dist/src/parser/parser.js:388:28)\n' +
      '    at Module.parseResponse (file:///app/node_modules/youtubei.js/dist/src/parser/parser.js:335:25)\n' +
      '    at new MediaInfo (file:///app/node_modules/youtubei.js/dist/src/core/mixins/MediaInfo.js:17:29)\n' +
      '    at new VideoInfo (file:///app/node_modules/youtubei.js/dist/src/parser/youtube/VideoInfo.js:38:9)\n' +
      '    at Innertube.<anonymous> (file:///app/node_modules/youtubei.js/dist/src/Innertube.js:83:20)\n' +
      '    at Generator.next (<anonymous>)\n' +
      '    at fulfilled (/app/node_modules/tslib/tslib.js:166:62)'
  },
  date: 2024-06-20T01:32:56.479Z,
  version: '9.4.0'
}

Expected behavior

No error is thrown & nothing is logged.

Current behavior

Error is thrown & logged.

Version

Default

Anything else?

The code that calls this function is here:
https://github.com/imputnet/cobalt/blob/1d5fa62271627ab84ac0398f39a3373488ce24ac/src/modules/processing/services/youtube.js

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.
@dumbmoron dumbmoron added the bug Something isn't working label Jun 20, 2024
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