-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug Report] Error loading track from YouTube (403) #885
Comments
This issue is confirmed to be widespread. A fix should hopefully come around soon. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I am having the same issue. Runned on Raspberry pi - ubuntu - java 11 32bit (i guess) i'm gonna try replacing 32 bit with 64 or running the same build on my desktop to see if i can replicate. |
I think you can use aarch64 Java
Alessio Orlando ***@***.***>於 2021年9月24日 週五,下午4:02寫道:
… Of course YouTube doesn't want for third parties to play their videos. We
are trying to figure out if it's a widespread issue that should be fixed
asap or not.
I am having the same issue. Runned on Raspberry pi - ubuntu - java 11
32bit (i guess) i'm gonna try replacing 32 bit with 64 or running the same
build on my desktop to see if i can replicate.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#885 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5KBJT3LFIE2N2AASPIMMTUDSAG5ANCNFSM5EM3MA7Q>
.
|
Could you show us:
|
Sure, here is the debug output
And here it is the log:
|
Thank you. |
@AlessiOrl Do you happen to be Finnish? If not, could you specify your country? I believe that YouTube has rolled out some change in specific regions/countries which causes this issue. |
Nop not Finnish, i'm Italian. I thought the same, the 403 error seems to lead there, i did not faced the issue with every song tho. Only twice in 30min of play. |
I'm also having this issue, located in Norway. Sometimes it works, sometimes it don't. Using the same version (0.3.6)
Edit: Seems that the issue has stopped at leadt for the time being |
Just got this error when trying to play this track: https://www.youtube.com/watch?v=UFalZJ5eEwY Same traceback as reported above. It doesn't seem to happen consistently, but of the four times I tried playing the track, two of them failed. edit: I should add that playing YouTube tracks works something like 95% - 98% of the time. Just every now and then a track won't play with the same "Error in playback" / "Not success status code: 403" error in the log. |
Quick update: looking through my logs, I can see actually that a track fails to play about 10% of the time, much worse than I had originally thought. 🙁 |
In case anyone's interested, I have a somewhat hacky fix for this issue by having the bot attempt to replay a YouTube track up to two times if it gets a 403. This seems to have largely solved the issue on my end. Here's the commit in my forked repo: briankendall@04e2451 Granted this is basically the same thing that sedmelluq/lavaplayer#631 does and the fix really ought to be in lavaplayer, so I'm not planning on making a PR for this change unless asked to by one of the maintainers. But it's been nice being able to build a version of the bot with the issue fixed in the meantime. |
Also affected, from Germany. I am also the maintainer of this AUR package: jmusicbot
|
Getting this error often with a self compiled version of JMusicBot (commit
Debug output:
Hope this helps. |
Try oraclejdk
Louk ***@***.***>於 2021年11月25日 週四,下午6:54寫道:
… Getting this error often with a self compiled version of JMusicBot (commit
6056ff2).
Client and server located in the Netherlands.
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:116)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.3.78
os.arch: amd64
os.name: Linux
os.version: 5.4.0-90-generic
java.vendor: Private Build
java.version: 1.8.0_292
java.runtime.version: 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
java.vm.version: 25.292-b10
Caused by: java.lang.RuntimeException: Not success status code: 403
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:87)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:116)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:105)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:150)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:166)
at java.io.DataInputStream.readByte(DataInputStream.java:265)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:45)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:78)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34)
at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:57)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:49)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)
... 4 common frames omitted
Debug output:
System Properties:
java.version = 1.8.0_292
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 1.8
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10
java.specification.version = 1.8
os.arch = amd64
os.name = Linux
JMusicBot Information:
Version = Snapshot
Owner = no
Prefix = +
AltPrefix = null
MaxSeconds = 0
NPImages = false
SongInStatus = true
StayInChannel = false
UseEval = true
UpdateAlerts = false
Dependency Information:
JDA Version = 4.3.0_324
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.78
Runtime Information:
Total Memory = 123
Used Memory = 42
Discord Information:
ID = no
Guilds = 3
Users = 2
Hope this helps.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#885 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5KBJSBLCCT2AWMKAB2YH3UNZZ33ANCNFSM5EM3MA7Q>
.
|
Hello, i have this issue Console error :
Debug command :
|
Same here
|
Just thought I'd add that this error occurs for me too, my bot's console output is below:
|
Sometimes I receive error Full Error
Debug Info
|
Debug
|
Got same error on a Dockerized container. Normally i have this errors when it first logs in in the channel or after a song skip.
Hope it helps |
Having the same issue
Debug
|
@MichailiK Could a feature be implemented to allow the bot to do a configurable amount of retries for songs that face this/other error(s)? Would fix a significant number of cases I'm sure. |
Having the same issue
Debug
|
Error reproducible using https://www.youtube.com/watch?v=FDuvoYoNMB4 |
I tried setting this up as an alternative to using red-discordbot and ended up immediately running into jagrosh#885. There is also jagrosh#1375 which advocates for moving to youtube-dl+ffmpeg as a replacement for lavaplayer, but that would take quite a bit of work as it is called out in the issue. After the OG lavaplayer repo was abandoned, the community forked it and has been maintaining it since: https://github.com/lavalink-devs/lavaplayer This commit moves us from using this project's forked version to the community's fork. I tested this with some tracks that were returning HTTP 403s and it is now resolved (at least in my testing...)
A fix for this is finally here, with the just released Version 0.4.0! |
Still happening to me on version 0.4.3 Reproducible using: https://music.youtube.com/watch?v=YQxS8BoIXao&si=KVvK3FCSpZI3pvWH
|
Yeah, YouTube changed their cipher script again, we're tracking this in #1682. |
Bug Description
Sometimes, a track fails to play & will get skipped without any prompt. The following exception will be thrown, indicating JMusicBot received a 403 response from YouTube:
Log output
Steps to Reproduce
There are no (reliable) reproducible steps.
Expected Result
YouTube tracks to load & play without issue
Debug Output
Additional Info
Related upstream PR: sedmelluq/lavaplayer#631
Related message(s) on the support server: https://discord.com/channels/147698382092238848/185037029384388608/889615324834582528
Checklist
The text was updated successfully, but these errors were encountered: