LuanRT / YouTube.js

A wrapper around YouTube's internal API — reverse engineering InnerTube
https://www.npmjs.com/package/youtubei.js
MIT License
3.47k stars 219 forks source link

<current version as of July 30th> <Songs stop> #711

Closed wolfles closed 1 month ago

wolfles commented 1 month ago

Steps to reproduce

play a song wait

Failure Logs

Unhandled Rejection DiscordRESTError: Invalid Form Body on POST /api/v10/applications/1265898592439107597/commands name: String value did not match validation regex. at RequestHandler.request (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\oceanic.js\dist\lib\rest\RequestHandler.js:96:15) at RequestHandler.authRequest (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\oceanic.js\dist\lib\rest\RequestHandler.js:81:21) at RESTManager.authRequest (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\oceanic.js\dist\lib\rest\RESTManager.js:47:29) at Applications.createGlobalCommand (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\oceanic.js\dist\lib\routes\Applications.js:78:30) at ClientApplication.createGlobalCommand (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\oceanic.js\dist\lib\structures\ClientApplication.js:54:46) at D:\SteamLibrary\steamapps\common\Bot Maker For Discord\bot.js:1537:30 at Array.forEach () at registerCommands (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\bot.js:1535:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 50035 }
play (@#0) >>> Play YouTube Song (@#2) >>> Error: Error: Failed to extract n-token decipher algorithm
PlayerError: Failed to extract n-token decipher algorithm at Player.extractNSigSourceCode (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\youtubei.js\bundle\node.cjs:17843:13) at Player. (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\youtubei.js\bundle\node.cjs:17720:28) at Generator.next () at fulfilled (D:\SteamLibrary\steamapps\common\Bot Maker For Discord\node_modules\tslib\tslib.js:166:62) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Expected behavior

play the whole song

Current behavior

some times it stops playing the song and delets the whole line up/que of song

Version

Default

Anything else?

It just stops playing songs when it wants to

Checklist

retrouser955 commented 1 month ago

Could you list down your exact version number? Judging by this (D:\SteamLibrary\steamapps\common\Bot Maker For Discord), you are using Bot Maker For Discord and they may have an outdated version of this package since this issue was fixed for me as of 10.2.0.

Edit: This issue seems to be also present in version 10.2.0. See #712