lavalink-devs / lavaplayer

Lavaplayer fork maintained by Lavalink
Apache License 2.0
171 stars 50 forks source link

Unknown file format and Unknown Audio OP code #146

Closed Hacker6329 closed 1 month ago

Hacker6329 commented 1 month ago

I was updating my discord bot for the use with the new lavaplayer 2.2.1 and youtube.source 1.5.1 changing my configuration as following

AudioSourceManagers.registerRemoteSources(audioPlayerManager, com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.class);
AudioSourceManagers.registerLocalSource(audioPlayerManager);
audioPlayerManager.registerSourceManager(new YoutubeAudioSourceManager(true, new MusicWithThumbnail(), new WebWithThumbnail(), new AndroidTestsuiteWithThumbnail()));

After this, i compiled and run my bot as always using this yt link "https://www.youtube.com/watch?v=6nRFaOFcbpk" (that always worked) and now I got this wall of text

00:03:12.851 [JDA MainWS-ReadThread] DEBUG com.sedmelluq.discord.lavaplayer.tools.io.TrustManagerBuilder -- Certificate list /certificates/extended.txt not present in classpath.
00:03:12.924 [JDA Gateway-Worker 1] DEBUG net.dv8tion.jda.internal.requests.WebSocketClient -- Sending voice request {"op":4,"d":{"self_deaf":true,"guild_id":1123447230112747583,"channel_id":1123449960164237364,"self_mute":false}}
00:03:13.118 [lava-daemon-pool-info-loader-2-thread-1] DEBUG com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager -- Common failure for loading item https://www.youtube.com/watch?v=6nRFaOFcbpk: Unknown file format.
00:03:13.180 [JDA RateLimit-Elastic-Worker 1] DEBUG net.dv8tion.jda.internal.requests.Requester -- Received response with following cf-rays: [8ae1d60d9f925258-MXP]
00:03:13.181 [JDA RateLimit-Elastic-Worker 1] DEBUG net.dv8tion.jda.api.requests.RestRateLimiter -- Caching bucket hash POST/interactions/{interaction_id}/{interaction_token}/callback -> 432f6223265d156004ac81366c5a948f
00:03:13.309 [JDA AudioWS-ReadThread (guildId: 1123447230112747583)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket -- Using encryption mode xsalsa20_poly1305_lite
00:03:13.320 [JDA AudioWS-ReadThread (guildId: 1123447230112747583)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket -- Unknown Audio OP code.
{"op":11,"d":{"user_ids":["467835670761701376"]}}
00:03:13.321 [JDA AudioWS-ReadThread (guildId: 1123447230112747583)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket -- Unknown Audio OP code.
{"op":18,"d":{"user_id":"467835670761701376","flags":2}}
00:03:13.321 [JDA AudioWS-ReadThread (guildId: 1123447230112747583)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket -- Unknown Audio OP code.
{"op":20,"d":{"user_id":"467835670761701376","platform":0}}
00:03:13.331 [JDA AudioWS-ReadThread (guildId: 1123447230112747583)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket -- Audio connection has finished connecting!
00:03:13.415 [JDA RateLimit-Elastic-Worker 2] DEBUG net.dv8tion.jda.internal.requests.Requester -- Received response with following cf-rays: [8ae1d60f098c5258-MXP]
00:03:13.425 [JDA RateLimit-Elastic-Worker 2] DEBUG net.dv8tion.jda.api.requests.RestRateLimiter -- Caching bucket hash POST/channels/{channel_id}/messages -> 3df15bae86f6647dd4dfcbd5c6949480
00:03:29.500 [JDA RateLimit-Scheduler-Worker 2] DEBUG net.dv8tion.jda.api.requests.RestRateLimiter -- Removed 7 expired buckets
00:03:59.489 [JDA RateLimit-Scheduler-Worker 2] DEBUG net.dv8tion.jda.api.requests.RestRateLimiter -- Removed 1 expired buckets
devoxin commented 1 month ago

Register youtube before all other sources.

Hacker6329 commented 1 month ago

It worked thanks a lot, registering youtube before the other things worked!