jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.36k stars 2.56k forks source link

[Bug Report] Can't Play Music(Youtube URL) #1633

Closed Lapius7 closed 3 months ago

Lapius7 commented 3 months ago

Bug Description

「{Prefix}play {YoutubeURL}」コマンドを使用し、音楽を再生しようとするとボットがVCに参加してから直ぐに抜けてしまいます。

Steps to Reproduce

Playコマンドを使用する。

Expected Result

音楽が再生される

Debug Output

[05:41:34] [INFO] [JMusicBot]: Loaded config from C:\Users\20071\OneDrive\デスクトップ\Discord-MusicBot.english\config.txt [05:41:34] [INFO] [JDA]: Login Successful! [05:41:35] [INFO] [WebSocketClient]: Connected to WebSocket [05:41:35] [INFO] [JDA]: Finished Loading! [05:42:07] [ERROR] [SignatureCipherManager]: Problematic YouTube player script /s/player/20dfca59/player_ias.vflset/ja_JP/base.js detected (issue detected with script: no n function match). Dumped to C:\Users\20071\AppData\Local\Temp\lavaplayer-yt-player-script1518192463622086614.js [05:42:08] [ERROR] [LocalAudioTrackExecutor]: Error in playback of tFcusl55yIk com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track. at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:113) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:330) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.RuntimeException: Not success status code: 403 at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:88) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:124) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:106) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:158) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:174) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:268) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:46) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:74) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:52) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:35) at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) at dev.lavalink.youtube.track.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:140) at dev.lavalink.youtube.track.YoutubeAudioTrack.processWithClient(YoutubeAudioTrack.java:108) at dev.lavalink.youtube.track.YoutubeAudioTrack.process(YoutubeAudioTrack.java:63) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:101) ... 4 common frames omitted [05:42:08] [ERROR] [AudioHandler]: Track tFcusl55yIk has failed to play com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track. at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:113) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:330) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.RuntimeException: Not success status code: 403 at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:88) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:124) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:106) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:158) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:174) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:268) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:46) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:74) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:52) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:35) at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) at dev.lavalink.youtube.track.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:140) at dev.lavalink.youtube.track.YoutubeAudioTrack.processWithClient(YoutubeAudioTrack.java:108) at dev.lavalink.youtube.track.YoutubeAudioTrack.process(YoutubeAudioTrack.java:63) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:101) ... 4 common frames omitted

Additional Info

日本語版ならちゃんと動きますが、英語版の方が少し多機能なので修正してほしいです。 https://github.com/Cosgy-Dev/JMusicBot-JP

Checklist

JMusicBot Version

0.4.2

Akint2x commented 3 months ago

Wait for new jar version.

Lapius7 commented 3 months ago

Wait for new jar version.

Does that mean I should wait for Version 0.4.3?

Akint2x commented 3 months ago

Yes

Lapius7 commented 3 months ago

Does everyone have the bug?

Akint2x commented 3 months ago

Does everyone have the bug?

Yes.

Lapius7 commented 3 months ago

Does everyone have the bug?

Yes.

I'm relieved to know I'm not the only one with this bug.

Lapius7 commented 3 months ago

thx

Crytkee commented 3 months ago

time to wait for new jar :pray: 😭😭😭

Oxbow117 commented 3 months ago

i love your pfp

Lapius7 commented 3 months ago

Wait for new jar version.

Do you have a rough idea of ​​how many days later you will be able to release the revised version?

Akint2x commented 3 months ago

If you want you can use from my git repo or wait for official version

Lapius7 commented 3 months ago

I don't know much about git, so I don't know much about it.

Akint2x commented 3 months ago

I don't know much about git, so I don't know much about it.

https://github.com/Akint2x/MusicBot/releases

PS: sorry for link here - my private repo but i love MusicBot

Lapius7 commented 3 months ago

https://github.com/Akint2x/MusicBot/releases/tag/JMusicBot-0.4.2f I tried introducing it, but it still crashes immediately.

[16:40:19] [INFO] [JMusicBot]: Loaded config from C:\Users\20071\OneDrive\デスクトップ\Discord-MusicBot\.english\config.txt [16:40:20] [INFO] [JDA]: Login Successful! [16:40:20] [INFO] [WebSocketClient]: Connected to WebSocket [16:40:20] [INFO] [JDA]: Finished Loading! [16:51:27] [ERROR] [SignatureCipherManager]: Problematic YouTube player script /s/player/20dfca59/player_ias.vflset/ja_JP/base.js detected (issue detected with script: no n function match). Dumped to C:\Users\20071\AppData\Local\Temp\lavaplayer-yt-player-script17537490056712723561.js [16:51:28] [ERROR] [LocalAudioTrackExecutor]: Error in playback of wZlv3qDPfjk com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track. at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:121) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:339) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.RuntimeException: Not success status code: 403 at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:88) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:124) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:106) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:158) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:174) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:268) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:47) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:94) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:52) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:35) at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) at dev.lavalink.youtube.track.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:148) at dev.lavalink.youtube.track.YoutubeAudioTrack.processWithClient(YoutubeAudioTrack.java:116) at dev.lavalink.youtube.track.YoutubeAudioTrack.process(YoutubeAudioTrack.java:71) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:109) ... 4 common frames omitted [16:51:28] [ERROR] [AudioHandler]: Track wZlv3qDPfjk has failed to play com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track. at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:121) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:339) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.RuntimeException: Not success status code: 403 at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:88) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:124) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:106) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:158) at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:174) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:268) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:47) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:94) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:52) at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:35) at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) at dev.lavalink.youtube.track.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:148) at dev.lavalink.youtube.track.YoutubeAudioTrack.processWithClient(YoutubeAudioTrack.java:116) at dev.lavalink.youtube.track.YoutubeAudioTrack.process(YoutubeAudioTrack.java:71) at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:109) ... 4 common frames omitted

Akint2x commented 3 months ago

sorry my mistake now its works

IrGaaT commented 3 months ago

Thank you Akint2x works perfectly.

Lapius7 commented 3 months ago

ty i try

Lapius7 commented 3 months ago

It worked fine! thank you!! However, as shown in the image below, is there anything I can do to get rid of the DM that comes every time I start up? スクリーンショット 2024-08-01 204808

Sirdo2k22 commented 3 months ago

You'll get a message when Jagrosh will public 0.4.x official. Now just ignor it. Its unofficial

Lapius7 commented 3 months ago

ok very ty support

ofoxus commented 3 months ago

Thank you Akint2x! It works great

jagrosh commented 3 months ago

Duplicate of #1630