sedmelluq / lavaplayer

Audio player library for Discord
Apache License 2.0
972 stars 247 forks source link

YouTube playback error #681

Open ghost opened 2 years ago

ghost commented 2 years ago
2022-01-19 16:41:01.893 ERROR 10084 --- [back-1-thread-1] c.s.d.l.t.p.LocalAudioTrackExecutor      : Error in playback of xUAgawZAi5g

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
    at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:116) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348) ~[lavaplayer-fork-1.3.96.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]
    at java.base/java.lang.Thread.run(Thread.java:830) ~[na:na]
    Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: 
  lavaplayer.version: 1.3.96-original
  os.arch: amd64
  os.name: Windows Server 2016
  os.version: 10.0
  java.vendor: Oracle Corporation
  java.version: 13.0.2
  java.runtime.version: 13.0.2+8
  java.vm.version: 13.0.2+8
Caused by: java.lang.RuntimeException: org.apache.http.conn.ConnectTimeoutException: Connect to rr4---sn-vgqsknz7.googlevideo.com:443 [rr4---sn-vgqsknz7.googlevideo.com/74.125.159.137] failed: Connect timed out
    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:56) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:57) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:49) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104) ~[lavaplayer-fork-1.3.96.jar!/:na]
    ... 4 common frames omitted
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to rr4---sn-vgqsknz7.googlevideo.com:443 [rr4---sn-vgqsknz7.googlevideo.com/74.125.159.137] failed: Connect timed out
    at com.sedmelluq.discord.lavaplayer.tools.http.ExtendedConnectionOperator.connectWithDestination(ExtendedConnectionOperator.java:162) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.tools.http.ExtendedConnectionOperator.connect(ExtendedConnectionOperator.java:81) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.10.jar!/:4.5.10]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.10.jar!/:4.5.10]
    at com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface.execute(HttpInterface.java:72) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:113) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:105) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:150) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:166) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at java.base/java.io.DataInputStream.readByte(DataInputStream.java:270) ~[na:na]
    at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:45) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:78) ~[lavaplayer-fork-1.3.96.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51) ~[lavaplayer-fork-1.3.96.jar!/:na]
    ... 9 common frames omitted
    Suppressed: com.sedmelluq.discord.lavaplayer.tools.http.ExtendedConnectionOperator$AdditionalDetails: Encountered when opening a connection with the following details:
  host: https://rr4---sn-vgqsknz7.googlevideo.com:443
  localAddress: <unspecified>
  remoteAddress: rr4---sn-vgqsknz7.googlevideo.com/74.125.159.137:443
  connectTimeout: 3000
  triedAddresses: rr4---sn-vgqsknz7.googlevideo.com/74.125.159.137
Caused by: java.net.SocketTimeoutException: Connect timed out
    at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546) ~[na:na]
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) ~[na:na]
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339) ~[na:na]
    at java.base/java.net.Socket.connect(Socket.java:603) ~[na:na]
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368) ~[httpclient-4.5.10.jar!/:4.5.10]
    at com.sedmelluq.discord.lavaplayer.tools.http.ExtendedConnectionOperator.connectWithDestination(ExtendedConnectionOperator.java:157) ~[lavaplayer-fork-1.3.96.jar!/:na]
    ... 28 common frames omitted
ghost commented 2 years ago

Note: this error occurs almost every single time I attempt to play anything through YouTube.

gaborszita commented 2 years ago

Is your internet working and aren't firewalls blocking something?

If you show us more code about how you're using this plugin, we'll be able to provide more help.

ghost commented 2 years ago

My internet is working and I've turned my firewall completely off. I am currently using this plugin through Lavalink, with a wavelink client to support music playback for my Discord bot written in pycord. What code should I send?

gaborszita commented 2 years ago

Have you looked at this issue: https://github.com/sedmelluq/lavaplayer/issues/463 and this: https://giters.com/freyacodes/Lavalink/issues/290 and this: https://stackoverflow.com/questions/62220695/lavalink-something-broke-when-playing-the-track

These people are having a similar issue and it seems that they didn't have to most up-to-date version of lavaplayer and lavalink. Can you confirm you're using the latest version of both lavaplayer and lavalink?

ghost commented 2 years ago

At the moment I am using the most recent release of Lavalink on the master branch. I've attached the output of my Lavalink server below containing all of the version information.

    Version:        3.4
    Build:          1257
    Build time:     26.10.2021 14:18:37 UTC
    Branch          master
    Commit:         a364833
    Commit time:    26.10.2021 14:15:20 UTC
    JVM:            17.0.1
    Lavaplayer      1.3.96-original