jagrosh / MusicBot

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

[Bug Report] twitch link not working #1291

Closed ProphetxQc closed 8 months ago

ProphetxQc commented 1 year ago

Bug Description

hi all , i have bug with twitch stream , i have this error if someone can help me

[19:33:31] [WARN] [DefaultAudioPlayerManager]: Suspicious exception for loading item https://www.twitch.tv/monstercat com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Server responded with an error. at com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools.fetchResponseAsJson(HttpClientTools.java:246) at com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager.fetchAccessToken(TwitchStreamAudioSourceManager.java:195) at com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager.loadItem(TwitchStreamAudioSourceManager.java:74) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:436) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:418) at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:217) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at com.sedmelluq.discord.lavaplayer.tools.OrderedExecutor$ChannelRunnable.executeQueue(OrderedExecutor.java:98) at com.sedmelluq.discord.lavaplayer.tools.OrderedExecutor$ChannelRunnable.run(OrderedExecutor.java:87) 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:1589) Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: lavaplayer.version: 1.3.78 os.arch: amd64 os.name: Windows 10 os.version: 10.0 java.vendor: Oracle Corporation java.version: 19.0.2 java.runtime.version: 19.0.2+7-44 java.vm.version: 19.0.2+7-44 Caused by: java.lang.IllegalStateException: Response code from channel info is 410 ... 12 common frames omitted

Steps to Reproduce

1 : link twitch 2 : got error

Expected Result

twitch url work

Debug Output

last version JMusicBot

window 10 arm64

Additional Info

No response

Checklist

proteuteu commented 1 year ago

im also having the exact same problem, hope someone will take a look into this