Closed phamleduy04 closed 1 year ago
I have a similar issue, playing from Soundcloud works when i'm using my app on my Windows desktop, but not when using it on my remote Linux server
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Loading track from SoundCloud failed.
at com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager.loadTrack(SoundCloudAudioSourceManager.java:218)
at com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager.processAsSingleTrack(SoundCloudAudioSourceManager.java:186)
at com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager.loadItem(SoundCloudAudioSourceManager.java:123)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:449)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:431)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:223)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.4.2-original
os.arch: aarch64
os.name: Linux
os.version: 5.4.17-2136.318.7.1.el7uek.aarch64
java.vendor: Oracle Corporation
java.version: 17.0.5
java.runtime.version: 17.0.5+9-LTS-191
java.vm.version: 17.0.5+9-LTS-191
Caused by: java.io.IOException: Invalid status code for video page response: 401
at com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools.assertSuccessWithContent(HttpClientTools.java:157)
at com.sedmelluq.discord.lavaplayer.source.soundcloud.DefaultSoundCloudDataLoader.load(DefaultSoundCloudDataLoader.java:24)
at com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager.loadTrack(SoundCloudAudioSourceManager.java:209)
... 9 more
Got the same issue and mine error shows 403 and 401 and whereas 403 is for a failed request where the server understood the request but failed or refused to fullfil it and the 401 is unauthorised which maybe a issue with soundcloud authentication on how it works with lavaplayer
@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?
I've done some testing, and the results are:
2 days ago (July 03, 2023):
Windows desktop, Poland - ✔️ working
Linux remote server, Germany - ❌ not working (youtube worked fine though)
Today (July 05, 2023):
Windows desktop, Poland - ✔️ working
Windows desktop, VPN to Germany - ✔️ working
Linux as VM on Windows host, Poland - ✔️ working
Linux as VM on Windows host, VPN to Germany - ✔️ working
Linux as VM on Windows host, VPN to Norway - ✔️ working
And surprisingly:
Linux remote server, Germany - ✔️ now working without trouble
I didn't change anything meaningful in my app, and now it works as expected. Possibly the error is on Souncloud's side
@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?
I request using VPN to Houston, TX, US
I did use the link again. It worked now 👍. Seems like SoundCloud issue
URL: https://soundcloud.com/devnguyxn/nhac-hoi-chay
Logs