Request to youtube failed with status 400
curo1305 opened this issue · 1 comments
curo1305 commented
Describe the Bug
Player breaks when I start any video on two of my instances and on the viewtube.io website as well
Steps to Reproduce the Bug
Start a video and I get on the website 'Error loading video: {GET} "/api/videos/IU03ljsP3sQ":500'
Device Info
- Device: Desktop Linux
- OS:Debian Testing
- Browser: Firefox
- Version: 122
Additional Context
Viewtube logs instance 1:
[ViewTube] Error 2/22/2024, 7:51:26 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:51:26 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:52:10 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:52:15 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:52:11 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:52:15 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
Logs Instance 2:
[ViewTube] Error 2/22/2024, 7:54:18 AM [ExceptionsHandler] query is missing - {"stack":["Error: query is missing\n at throwIfMissing (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:16158:13)\n at Innertube.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:17878:7)\n at Generator.next (<anonymous>)\n at /home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:169:75\n at new Promise (<anonymous>)\n at __awaiter (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:165:16)\n at Innertube.search (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:17877:41)\n at SearchService.doSearch (/home/app/server/dist/main.cjs:2769:44)"]}
at ReactiveEffect.fn (./client/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:917:13)
[ViewTube] Error 2/22/2024, 7:53:19 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'name')
at authorToName (./client/.output/server/chunks/app/_nuxt/watch-60FJ3GYF.mjs:1152:32)
at ./client/.output/server/chunks/app/_nuxt/watch-60FJ3GYF.mjs:1160:43
at ReactiveEffect.run (./client/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:155:19)
at get value [as value] (./client/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:928:68)
at unref (./client/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:1022:29)
at ./client/.output/server/chunks/app/_nuxt/watch-60FJ3GYF.mjs:1175:16
at renderComponentSubTree (./client/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:433:9)
at ./client/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:377:25
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ViewTube] Error 2/22/2024, 7:51:05 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/next?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
[ViewTube] Error 2/22/2024, 7:51:05 AM [ExceptionsHandler] Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400 - {"stack":["Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400\n at HTTPClient.<anonymous> (/home/app/node_modules/.pnpm/youtubei.js@8.1.0/node_modules/youtubei.js/bundle/node.cjs:13418:13)\n at Generator.next (<anonymous>)\n at fulfilled (/home/app/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:166:62)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]}
moisout commented
Fixed with release 0.15.2!