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

[Audio] Something broke when playing the track on Lavalink 3.7.11+red.3 #6479

Open
1Pac0 opened this issue Nov 24, 2024 · 10 comments
Open

[Audio] Something broke when playing the track on Lavalink 3.7.11+red.3 #6479

1Pac0 opened this issue Nov 24, 2024 · 10 comments
Labels
Category: Cogs - Audio This is related to the Audio cog. Type: Informational Aims to provide information or facilitate discussion.
Milestone

Comments

@1Pac0
Copy link

1Pac0 commented Nov 24, 2024

If you are also experiencing this issue, please read

Known issues with Audio are tracked in #4505. This issue is one of our known issues that we plan on patching in the next release. You can follow the instructions in that issue in the meantime, though they are more complicated than a bot update. If you need additional help, please feel free to join our support server at https://discord.gg/red


What Red version are you using?

3.5.13

What were you trying to do?

Use the !Play command to play music from youtube

What did you expect to happen?

Hear the music from Youtube

What actually happened?

Track Error
Something broke when playing the track.

How can we reproduce this error?

1.!play
2.
3.
...

Anything else?

No response

@1Pac0 1Pac0 added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Nov 24, 2024
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Nov 24, 2024
@athompson-hoho
Copy link

I am also experiencing this issue. I don't know if it's the same as the OP but my spring.log files show the following

`2024-11-23 20:19:34.056 INFO 150 --- [XNIO-1 I/O-5] lavalink.server.io.SocketServer : {"op": "play", "guildId": "326259390372118541", "track": "QAAAnwIAOlRoZSBFbXB0aW5lc3MgTWFjaGluZSAoT2ZmaWNpYWwgTXVzaWMgVmlkZW8pIC0gTGlua2luIFBhcmsAC0xpbmtpbiBQYXJrAAAAAAADESgAC1NSWEg5QWJUMjgwAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9U1JYSDlBYlQyODAAB3lvdXR1YmUAAAAAAAAAAA==", "noReplace": false, "startTime": "0", "pause": false}
2024-11-23 20:19:34.196 INFO 150 --- [XNIO-1 I/O-5] lavalink.server.io.SocketServer : {"op": "voiceUpdate", "guildId": "326259390372118541", "sessionId": "6d6e28956f0e34fae7824a70cf105d9f", "event": {"token": "c2230f5f627ae239", "guild_id": "326259390372118541", "endpoint": "us-south8917.discord.media:443"}}
2024-11-23 20:19:35.662 INFO 150 --- [lava-daemon-pool-playback-1-thread-1] d.l.y.http.YoutubeAccessTokenTracker : Updating YouTube visitor id succeeded, new one is CgtJSWRnd1pjdzJ1byi3moq6BjIKCgJVUxIEGgAgUjoMCAEg3OqL7PCmo6Fn, next update will be after 600 seconds.
2024-11-23 20:19:35.937 ERROR 150 --- [lava-daemon-pool-playback-1-thread-1] c.s.d.l.t.p.LocalAudioTrackExecutor : Error in playback of SRXH9AbT280

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) ~[lavaplayer-1.5.4.jar!/:na]
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:113) ~[lavaplayer-1.5.4.jar!/:na]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:324) ~[lavaplayer-1.5.4.jar!/:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:840) ~[na:na]
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.5.4
os.arch: amd64
os.name: Linux
os.version: 6.8.0-49-generic
java.vendor: Debian
java.version: 17.0.13
java.runtime.version: 17.0.13+11-Debian-2deb12u1
java.vm.version: 17.0.13+11-Debian-2deb12u1
Caused by: java.io.IOException: Invalid status code for player api response: 403
at com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools.assertSuccessWithContent(HttpClientTools.java:154) ~[lavaplayer-1.5.4.jar!/:na]
at dev.lavalink.youtube.clients.skeleton.NonMusicClient.loadJsonResponse(NonMusicClient.java:58) ~[youtube-plugin-1.7.2.jar!/:na]
at dev.lavalink.youtube.clients.skeleton.NonMusicClient.loadTrackInfoFromInnertube(NonMusicClient.java:97) ~[youtube-plugin-1.7.2.jar!/:na]
at dev.lavalink.youtube.clients.skeleton.StreamingNonMusicClient.loadFormats(StreamingNonMusicClient.java:35) ~[youtube-plugin-1.7.2.jar!/:na]
at dev.lavalink.youtube.track.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:188) ~[youtube-plugin-1.7.2.jar!/:na]
at dev.lavalink.youtube.track.YoutubeAudioTrack.processWithClient(YoutubeAudioTrack.java:114) ~[youtube-plugin-1.7.2.jar!/:na]
at dev.lavalink.youtube.track.YoutubeAudioTrack.process(YoutubeAudioTrack.java:72) ~[youtube-plugin-1.7.2.jar!/:na]
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:101) ~[lavaplayer-1.5.4.jar!/:na]
... 4 common frames omitted

2024-11-23 20:19:35.962 INFO 150 --- [XNIO-1 I/O-5] lavalink.server.io.SocketServer : {"op": "stop", "guildId": "326259390372118541"}
2024-11-23 20:19:36.132 INFO 150 --- [XNIO-1 I/O-5] lavalink.server.io.SocketServer : {"op": "stop", "guildId": "326259390372118541"}`

@ymt0220
Copy link

ymt0220 commented Nov 24, 2024

I have the same problem

@Flame442 Flame442 changed the title Youtube error. [Audio] Something broke when playing the track on Lavalink 3.7.11+red.3 Nov 24, 2024
@Flame442
Copy link
Member

Flame442 commented Nov 24, 2024

Known issues with Audio are tracked in #4505. This issue is one of our known issues that we plan on patching in the next release. You can follow the instructions in that issue in the meantime, though they are more complicated than a bot update. If you need additional help, please feel free to join our support server at https://discord.gg/red

@Flame442 Flame442 added Type: Informational Aims to provide information or facilitate discussion. and removed Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Status: Needs Triage This has not been labeled or discussed for handling yet. labels Nov 24, 2024
@Flame442 Flame442 added this to the 3.5.14 milestone Nov 24, 2024
@Flame442 Flame442 added the Category: Cogs - Audio This is related to the Audio cog. label Nov 24, 2024
@alex-huff
Copy link

Download or wget this application.yml file: https://gist.githubusercontent.com/aikaterna/4227dbf1c45640c7ee57cbe36e85ea53/raw/1b1c0f79350e69bbb1cbfd9c1301cc2ef930fc2d/application.yml

This application.yml did not fix the issue for me but the one pinned in the Discord did: https://gist.githubusercontent.com/aikaterna/cb32441fba460ebf09567b8f718f9224/raw/bbe378b25944a3549d17ba16ebddfe3c4ca7ec12/application.yml

@Cryztalzone
Copy link

I have had the same problem for about two weeks, Invalid status code for player api response: 403.
With Red running on Docker none of the provided application.yml seems to fix it, but when checking the spring.log I saw

YOUTUBE-SOURCE VERSION 1.10.2 AVAILABLE
https://github.com/lavalink-devs/youtube-source/releases/tag/1.10.2
Update to ensure the YouTube source remains operational!

so I did just that. Download the youtube-plugin-1.10.2.jar from here and replace the file in /data/cogs/Audio/plugins. You need to rename the youtube-plugin-1.10.2.jar to youtube-plugin-1.7.2.jar because otherwise, it seems to be automatically replaced by the included version which caused the error in the first place. Restart the bot and (hopefully) enjoy playing YouTube Videos!

@Flame442
Copy link
Member

Flame442 commented Dec 6, 2024

The application.yml is supposed to change the version, but it can only be modified if you use an unmanaged node. Docker is not a supported environment, so I'm not sure how it can be set up to be unmanaged to be able to apply the fix.

@b1nary-b0b
Copy link

I am facing the same issue with API Error 403 on a dockerized env.

@hungrybeetle-bit
Copy link

I was able to do this in docker by using the fredboat/lavalink:v3-legacy image and mounting the file to /opt/Lavalink/application.yml

@Artemiy42
Copy link

I have had the same problem for about two weeks, Invalid status code for player api response: 403. With Red running on Docker none of the provided application.yml seems to fix it, but when checking the spring.log I saw

YOUTUBE-SOURCE VERSION 1.10.2 AVAILABLE
https://github.com/lavalink-devs/youtube-source/releases/tag/1.10.2
Update to ensure the YouTube source remains operational!

so I did just that. Download the youtube-plugin-1.10.2.jar from here and replace the file in /data/cogs/Audio/plugins. You need to rename the youtube-plugin-1.10.2.jar to youtube-plugin-1.7.2.jar because otherwise, it seems to be automatically replaced by the included version which caused the error in the first place. Restart the bot and (hopefully) enjoy playing YouTube Videos!

For me youtube-plugin-1.10.2 didn't solve the problem, but youtube-plugin-1.11.1.jar from here did.

@vChroniq
Copy link

Docker is not a part of the supported platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Audio This is related to the Audio cog. Type: Informational Aims to provide information or facilitate discussion.
Projects
None yet
Development

No branches or pull requests

10 participants