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

Invalid status code: 400 #73

Open
jocull opened this issue Mar 7, 2024 · 8 comments
Open

Invalid status code: 400 #73

jocull opened this issue Mar 7, 2024 · 8 comments

Comments

@jocull
Copy link
Contributor

jocull commented Mar 7, 2024

See

This can be addressed by changing the implementation for lavaplayer to:

    // Use a commit version right after 2.1.0
    // See https://github.com/lavalink-devs/lavaplayer/pull/70
    implementation("com.github.lavalink-devs.lavaplayer:lavaplayer:727959e9f6")

Will work on a PR when I can.

@jocull
Copy link
Contributor Author

jocull commented Mar 7, 2024

I updated #69 to include this fix as well

@jocull
Copy link
Contributor Author

jocull commented Mar 19, 2024

The PR has been updated, a Docker image is released. Initial feedback reports that this addresses the problem. I've moved to the proper release of lavaplayer as well instead of a commit hash 🙂

@kiloforce
Copy link

@jocull your ghcr.io/jocull/ukulele:jda-5 change appeared to be working last week, but this week getting a new error. Likely YouTube changed something again?

2024-04-02 00:49:57.464  INFO 1 --- [atcher-worker-1] dev.arbjerg.ukulele.jda.CommandManager   : Invocation: ;play dnd ambient music
2024-04-02 00:49:58.142 ERROR 1 --- [back-1-thread-1] dev.arbjerg.ukulele.audio.Player         : Track exception

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Video returned by YouTube isn't what was requested
        at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.load(DefaultYoutubeTrackDetailsLoader.java:59) ~[lavaplayer-2.1.1.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.loadDetails(DefaultYoutubeTrackDetailsLoader.java:36) ~[lavaplayer-2.1.1.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:83) ~[lavaplayer-2.1.1.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:44) ~[lavaplayer-2.1.1.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:101) ~[lavaplayer-2.1.1.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:330) ~[lavaplayer-2.1.1.jar!/: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]
...

@jocull
Copy link
Contributor Author

jocull commented Apr 4, 2024

@kiloforce It seems like this is required upstream: lavalink-devs/lavaplayer#93

In the meantime we can use the snapshot version from this repo. The branch and PR are updated. Docker images are also updated.

@kiloforce
Copy link

Thanks!

@Payden-Pringle
Copy link

Payden-Pringle commented Oct 27, 2024

I'm using jocull/ukulele at jda-5:ffe3531 but still getting this error when trying to play a Youtube Video:
Caused by: java.io.IOException: Invalid status code for video page response: 400

@kiloforce
Copy link

@jocull do you get the:

"Suspicious exception for playback of sHA_4wfQhE8 - com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Please sign in"

error when trying to play music on Ukulele?

@jocull
Copy link
Contributor Author

jocull commented Nov 23, 2024

Yes, or a similar error. I will post an update to #77 with where I feel the situation is.

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

3 participants