topi314 / LavaSrc

A collection of additional Lavaplayer/Lavalink Sources
Apache License 2.0
165 stars 54 forks source link

Deezer Failed to get media URL: 2000: An error occurred while decoding track token. #95

Closed flav-code closed 2 weeks ago

flav-code commented 1 year ago

version

LavaSrc: 4.0.0-beta.3 Lavalink: 4.0.0-beta.3 Java: 17

it happens randomly and I can't reproduce it, so if you test it the link will probably work.

{
   op: 'event',
   type: 'TrackExceptionEvent',
   guildId: '-------------', // i removed the id
   track: {
     encoded: 'QAAA2QMACE91ciBTb25nAAxUYXlsb3IgU3dpZnQAAAAAAAMRKAAHMjI4MjQ5NAABACBodHRwczovL2RlZXplci5jb20vdHJhY2svMjI4MjQ5NAEAaWh0dHBzOi8vZS1jZG5zLWltYWdlcy5kemNkbi5uZXQvaW1hZ2VzL2NvdmVyLzljMGU4MGJiM2MxNmUxYzk4N2NmMjM1OTI5ZWI3NzU3LzEwMDB4MTAwMC0wMDAwMDAtODAtMC0wLmpwZwEADFVTQ0pZMDcwMzE0MgAGZGVlemVyAAAAAAAAAAA=',
     info: {
       identifier: '2282494',
       isSeekable: true,
       author: 'Taylor Swift',
       length: 201000,
       isStream: false,
       position: 0,
       title: 'Our Song',
       uri: 'https://deezer.com/track/2282494',
       sourceName: 'deezer',
       artworkUrl: 'https: //e-cdns-images.dzcdn.net/images/cover/9c0e80bb3c16e1c987cf235929eb7757/1000x1000-000000-80-0-0.jpg',
       isrc: 'USCJY0703142'
        },
     pluginInfo: {}
    },
   exception: {
     message: 'Something broke when playing the track.',
     severity: 'fault',
     cause: 'java.lang.IllegalStateException: Failed to get media URL: 2000: An error occurred while decoding track token.'
    }
}
topi314 commented 1 year ago

can you append the full stracktrace please?

flav-code commented 1 year ago

Nothing abnormal

image

flav-code commented 1 year ago

The problem won't show up in the logs

topi314 commented 1 year ago

please paste the log as text

flav-code commented 1 year ago

ok

flav-code commented 1 year ago
2023-08-04T00:26:15.139+08:00  INFO 26815 --- [XNIO-1 task-7] l.server.player.AudioLoaderRestHandler   : Got request to load for identifier "dzisrc:USCJY0703142"
2023-08-04T00:26:15.871+08:00  INFO 26815 --- [XNIO-1 task-7] lavalink.server.player.AudioLoader       : Loaded track Our Song
2023-08-04T00:26:15.873+08:00  INFO 26815 --- [XNIO-1 task-7] l.server.io.RequestLoggingFilter         : GET /v4/loadtracks?identifier=dzisrc%3AUSCJY0703142, client=0.0.0.0
2023-08-04T00:26:16.209+08:00  INFO 26815 --- [XNIO-1 task-7] l.server.io.RequestLoggingFilter         : PATCH /v4/sessions/jpdi4y02natgnicw/players/397378255709143043?noReplace=true, client=0.0.0.0, payload={"encodedTrack":"QAAA2QMACE91ciBTb25nAAxUYXlsb3IgU3dpZnQAAAAAAAMRKAAHMjI4MjQ5NAABACBodHRwczovL2RlZXplci5jb20vdHJhY2svMjI4MjQ5NAEAaWh0dHBzOi8vZS1jZG5zLWltYWdlcy5kemNkbi5uZXQvaW1hZ2VzL2NvdmVyLzljMGU4MGJiM2MxNmUxYzk4N2NmMjM1OTI5ZWI3NzU3LzEwMDB4MTAwMC0wMDAwMDAtODAtMC0wLmpwZwEADFVTQ0pZMDcwMzE0MgAGZGVlemVyAAAAAAAAAAA="}
2023-08-04T00:26:17.121+08:00 ERROR 26815 --- [lava-daemon-pool-playback-1-thread-9] c.s.d.l.t.p.LocalAudioTrackExecutor      : Error in playback of 2282494

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
    at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:45) ~[lavaplayer-2.0.0.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:117) ~[lavaplayer-2.0.0.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$2(DefaultAudioPlayerManager.java:321) ~[lavaplayer-2.0.0.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:833) ~[na:na]
Caused by: java.lang.IllegalStateException: Failed to get media URL: 2000: An error occurred while decoding track token.
    at com.github.topi314.lavasrc.deezer.DeezerAudioTrack.checkResponse(DeezerAudioTrack.java:66) ~[lavasrc-plugin-4.0.0-beta.3.jar!/:na]
    at com.github.topi314.lavasrc.deezer.DeezerAudioTrack.getTrackMediaURI(DeezerAudioTrack.java:58) ~[lavasrc-plugin-4.0.0-beta.3.jar!/:na]
    at com.github.topi314.lavasrc.deezer.DeezerAudioTrack.process(DeezerAudioTrack.java:84) ~[lavasrc-plugin-4.0.0-beta.3.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:105) ~[lavaplayer-2.0.0.jar!/:na]
    ... 4 common frames omitted
jurienhamaker commented 1 year ago

Been having the same issue "sometimes", it's very random.

However I just get 403's:

  2023-08-07 00:46:15.388 ERROR 1 --- [back-1-thread-3] c.s.d.l.t.p.LocalAudioTrackExecutor      : Error in playback of 4NRCIrvUCK8KBn4RXOB0Fa

  com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
          at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:116) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:361) ~[lavaplayer-1.4.0.jar!/:na]
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
          at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
          Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
    lavaplayer.version: 1.4.0-original
    os.arch: amd64
    os.name: Linux
    os.version: 5.4.0-137-generic
    java.vendor: Eclipse Adoptium
    java.version: 18.0.2.1
    java.runtime.version: 18.0.2.1+1
    java.vm.version: 18.0.2.1+1
  Caused by: java.lang.RuntimeException: Not success status code: 403
          at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:87) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:123) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:105) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:157) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:173) ~[lavaplayer-1.4.0.jar!/:na]
          at java.base/java.io.DataInputStream.readByte(Unknown Source) ~[na:na]
          at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:45) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:78) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:58) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:50) ~[lavaplayer-1.4.0.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) ~[lavaplayer-1.4.0.jar!/:na]
          at com.github.topisenpai.lavasrc.mirror.MirroringAudioTrack.process(MirroringAudioTrack.java:50) ~[lavasrc-plugin-3.2.4.jar!/:na]
          at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104) ~[lavaplayer-1.4.0.jar!/:na]
          ... 4 common frames omitted
topi314 commented 1 year ago

this has absolutely nothing to do with this issue or lavasrc

topi314 commented 2 weeks ago

closing this since I haven't seen any recent reports about this. feel free to reopen if this issue persists ig

flav-code commented 2 weeks ago

I still have the issue on my side