Comments (8)
I have the same issue with 'ytsearch:' but when I search the same thing a number of times there is a chance that it plays without an error. Weird thing because I didn't have this error before and I didn't change anything in the code. First time I noticed this issue was like 2 weeks ago and it was pretty rare but today it is a lot worse. It takes like 6 tries to get the song to play with 'ytsearch'. (playing from url works just fine) I also tried a fork that is more up to date and it's maintained currently: https://github.com/lavalink-devs/lavaplayer and the error is the same.
I ended up using this:
maven { url = "https://s01.oss.sonatype.org/content/repositories/snapshots" }
implementation 'dev.arbjerg:lavaplayer:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT'
which is a snapshot build of the mentioned fork, which does fix the issues for me
from lavaplayer-fork.
It's not age stricted. After restarting bot, it works again but after like 3~4days same error occur.
from lavaplayer-fork.
Having the same issues with searching. If you try searching some videos by name, it gives the same 400 error, but if you then give the direct url to the video, it plays
from lavaplayer-fork.
I have the same issue with 'ytsearch:' but when I search the same thing a number of times there is a chance that it plays without an error. Weird thing because I didn't have this error before and I didn't change anything in the code. First time I noticed this issue was like 2 weeks ago and it was pretty rare but today it is a lot worse. It takes like 6 tries to get the song to play with 'ytsearch'. (playing from url works just fine)
I also tried a fork that is more up to date and it's maintained currently: https://github.com/lavalink-devs/lavaplayer and the error is the same.
from lavaplayer-fork.
Thank you so much @hypherionmc! it fixed my issue.
Also, why it this bug not fixed in official release?
from lavaplayer-fork.
Only recently started experiencing these issues. I tried using the snapshot hypherionmc gave with no luck.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadTrackWithVideoId(YoutubeAudioSourceManager.java:220)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager$LoadingRoutes.track(YoutubeAudioSourceManager.java:232)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager$LoadingRoutes.track(YoutubeAudioSourceManager.java:228)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.routeFromUrlWithVideoId(DefaultYoutubeLinkRouter.java:99)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.routeFromMainDomain(DefaultYoutubeLinkRouter.java:64)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.route(DefaultYoutubeLinkRouter.java:42)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadItemOnce(YoutubeAudioSourceManager.java:196)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadItem(YoutubeAudioSourceManager.java:131)
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:264)
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:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.3.71
os.arch: amd64
os.name: Windows 10
os.version: 10.0
java.vendor: Oracle Corporation
java.version: 15.0.2
java.runtime.version: 15.0.2+7-27
java.vm.version: 15.0.2+7-27
Caused by: java.lang.RuntimeException: Error when extracting data EID: b2fa8de2-4465-4eae-b2df-b35543538c4d, mainJson<redacted>
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.throwWithDebugInfo(ExceptionTools.java:134)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.load(DefaultYoutubeTrackDetailsLoader.java:66)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.loadDetails(DefaultYoutubeTrackDetailsLoader.java:41)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadTrackWithVideoId(YoutubeAudioSourceManager.java:208)
... 16 more
Caused by: java.lang.RuntimeException: Neither player nor playerResponse in result EID: b2ea1206-a02e-4808-8086-c1127e9a2d36, json<redacted>
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.throwWithDebugInfo(ExceptionTools.java:134)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeTrackJsonData.fromMainResult(YoutubeTrackJsonData.java:53)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.loadBaseResponse(DefaultYoutubeTrackDetailsLoader.java:76)
at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.load(DefaultYoutubeTrackDetailsLoader.java:55)
... 18 more```
from lavaplayer-fork.
Hello,
I've stumbled across this https://stackoverflow.com/questions/78244940/java-music-bot-not-playing-music?noredirect=1#comment137948948_78244940
It seems that if you use the following depedency it starts working again:
<repository>
<id>arbjergDev-snapshots</id>
<name>Lavalink Repository</name>
<url>https://maven.lavalink.dev/snapshots</url>
</repository>
<dependency>
<groupId>dev.arbjerg</groupId>
<artifactId>lavaplayer</artifactId>
<version>0eaeee195f0315b2617587aa3537fa202df07ddc-SNAPSHOT</version>
</dependency>
from lavaplayer-fork.
development has mostly been moved to https://github.com/lavalink-devs/lavaplayer with a new rewritten youtube source located at https://github.com/lavalink-devs/youtube-source
I recommend you try that
from lavaplayer-fork.
Related Issues (20)
- Failed to reply to interaction + full bot is down HOT 2
- Track loading issue. HOT 17
- Extract more tags from localtracks
- .wav file gives you an invalid audio format error HOT 1
- Stream overrun HOT 2
- Vimeo 'Cannot invoke "String.length()" because "this.input" is null'
- Expose playlist metadata in playlist response object HOT 5
- Not success status code: 403 HOT 29
- java.lang.NumberFormatException: For input string: "70M plays" HOT 1
- Video returned by YouTube isn't what was requested
- Can't play music on SoundCloud HOT 6
- Issue with OggVorbis decoding in some local tracks HOT 9
- [Feature Request] Allow Java based resources as local tracks
- YouTube access token update failed HOT 7
- Failed to collect additional information on OGG stream
- Something broke when playing the track. HOT 1
- error
- AudioPlayer.provide() always returning null HOT 1
- Getting Required Library Not Found error on Windows 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavaplayer-fork.