LavaPlayer doesn't yet support the new Twitch API
See original GitHub issueStarting April 30, 2020, Twitch now requires the API to be authenticated with OAuth. More information can be found here: https://dev.twitch.tv/docs/api
This is now impacting users as they can’t play Twitch streams anymore, the log outputs the following error:
2020-05-06 22:19:36.121 ERROR 4578 --- [lava-daemon-pool-info-loader-2-thread-1] lavalink.server.player.AudioLoader : Load failed
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Server responded with an error.
at com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools.fetchResponseAsJson(HttpClientTools.java:222) ~[lavaplayer-1.3.38.jar!/:na]
at com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager.fetchStreamChannelInfo(TwitchStreamAudioSourceManager.java:177) ~[lavaplayer-1.3.38.jar!/:na]
at com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager.loadItem(TwitchStreamAudioSourceManager.java:75) ~[lavaplayer-1.3.38.jar!/:na]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:437) ~[lavaplayer-1.3.38.jar!/:na]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:419) ~[lavaplayer-1.3.38.jar!/:na]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:218) ~[lavaplayer-1.3.38.jar!/:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: java.lang.IllegalStateException: Response code from channel info is 401
... 10 common frames omitted
My question is if LavaPlayer will be updated to support the new Twitch API?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error: No response from Twitch - API
Hello everyone! I'm new to programming and twitch. API. So, I have a simple file and code which is the temple to log...
Read more >com.sedmelluq.discord.lavaplayer.tools.JsonBrowser.parse ...
How to use. parse. method. in. com.sedmelluq.discord.lavaplayer.tools.JsonBrowser. Best Java code snippets using com.
Read more >LavaPlayer: Audio Player Library for Discord Written in Java ...
LavaPlayer is an audio player library written in Java which can load audio tracks from various sources and convert them into a stream...
Read more >DV8FromTheWorld / JDA Download - JitPack
Java wrapper for the popular chat & VOIP service: Discord https://discord.com ... JDA strives to provide a clean and full wrapping of the...
Read more >Redbot 3.3.12 (2020-08-18) — Red
Twitch playback and YouTube searching should be functioning again. Core Bot¶. Fixed delayed help when [p]set deletedelay is enabled ( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@duncte123 Yes this still happens, even on
1.3.48
. I just made a build of Frederik’s Lavalink using that version and tried it and I got the same error log. Collapsed below is the log, including stacktrace.Click me to expand and see stacktrace
Or through hastebin, looks like GitHub wraps some lines so this might be easier to read: https://hasteb.in/tiyipeji
@drozycki Confirmed. This issue can be closed I think.