Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when trying to play age restricted content #61

Open
Manngunner opened this issue Nov 28, 2022 · 0 comments
Open

Exception when trying to play age restricted content #61

Manngunner opened this issue Nov 28, 2022 · 0 comments

Comments

@Manngunner
Copy link

Manngunner commented Nov 28, 2022

I get an error when trying to play any video that is age restricted. An example below:

Nov 28 20:00:28 java[1923489]: 2022-11-28 20:00:28.170  INFO 1923489 --- [atcher-worker-1] dev.arbjerg.ukulele.jda.CommandManager   : Invocation: ;play https://youtu.be/j0lN0w5HVT8
Nov 28 20:00:28 java[1923489]: 2022-11-28 20:00:28.340  WARN 1923489 --- [back-1-thread-1] c.s.d.l.s.y.DefaultYoutubeTrackDetails   : Video j0lN0w5HVT8 with no detected format field, response {"responseContext":{"visitorD>
Nov 28 20:00:28 java[1923489]: 2022-11-28 20:00:28.348  WARN 1923489 --- [back-1-thread-1] c.s.d.l.t.p.LocalAudioTrackExecutor      : Suspicious exception for playback of j0lN0w5HVT8
Nov 28 20:00:28 java[1923489]: com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unable to play this YouTube track.
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetails.loadTrackFormats(DefaultYoutubeTrackDetails.java:79) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetails.getFormats(DefaultYoutubeTrackDetails.java:49) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:83) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:42) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Nov 28 20:00:28 java[1923489]:         Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
Nov 28 20:00:28 java[1923489]:   lavaplayer.version: 1.3.96-original
Nov 28 20:00:28 java[1923489]:   os.arch: amd64
Nov 28 20:00:28 java[1923489]:   os.name: Linux
Nov 28 20:00:28 java[1923489]:   os.version: 5.4.0-131-generic
Nov 28 20:00:28 java[1923489]:   java.vendor: Ubuntu
Nov 28 20:00:28 java[1923489]:   java.version: 11.0.17
Nov 28 20:00:28 java[1923489]:   java.runtime.version: 11.0.17+8-post-Ubuntu-1ubuntu220.04
Nov 28 20:00:28 java[1923489]:   java.vm.version: 11.0.17+8-post-Ubuntu-1ubuntu220.04
Nov 28 20:00:28 java[1923489]: Caused by: java.lang.IllegalStateException: No track formats found.
Nov 28 20:00:28 java[1923489]:         ... 9 common frames omitted
Nov 28 20:00:28 java[1923489]: 2022-11-28 20:00:28.348 ERROR 1923489 --- [back-1-thread-1] dev.arbjerg.ukulele.audio.Player         : Track exception
Nov 28 20:00:28 java[1923489]: com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unable to play this YouTube track.
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetails.loadTrackFormats(DefaultYoutubeTrackDetails.java:79) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetails.getFormats(DefaultYoutubeTrackDetails.java:49) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:83) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:42) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348) ~[lavaplayer-fork-1.3.96.jar!/:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
Nov 28 20:00:28 java[1923489]:         at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Nov 28 20:00:28 java[1923489]:         Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
Nov 28 20:00:28 java[1923489]:   lavaplayer.version: 1.3.96-original
Nov 28 20:00:28 java[1923489]:   os.arch: amd64
Nov 28 20:00:28 java[1923489]:   os.name: Linux
Nov 28 20:00:28 java[1923489]:   os.version: 5.4.0-131-generic
Nov 28 20:00:28 java[1923489]:   java.vendor: Ubuntu
Nov 28 20:00:28 java[1923489]:   java.version: 11.0.17
Nov 28 20:00:28 java[1923489]:   java.runtime.version: 11.0.17+8-post-Ubuntu-1ubuntu220.04
Nov 28 20:00:28 java[1923489]:   java.vm.version: 11.0.17+8-post-Ubuntu-1ubuntu220.04
Nov 28 20:00:28 java[1923489]: Caused by: java.lang.IllegalStateException: No track formats found.
Nov 28 20:00:28 java[1923489]:         ... 9 common frames omitted

After getting this exception, the bot has to be stopped and started again.

Please let me know if you require any additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant