YouTube.js
YouTube.js copied to clipboard
9.4.0 [YOUTUBEJS][Parser]: InnertubeError: Something went wrong at PlayerStoryboardSpec!
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.
- Create an Innertube instance authenticated with an account via OAuth2 to Innertube
- Call getBasicInfo() with some ID and
ANDROID
client - 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.
- [X] I checked the documentation and found no answer.
- [X] I have searched the existing issues and made sure this is not a duplicate.
- [X] I have provided sufficient information.