Comments (6)
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
from lavaplayer-fork.
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
from lavaplayer-fork.
@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?
from lavaplayer-fork.
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
from lavaplayer-fork.
@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?
I request using VPN to Houston, TX, US
from lavaplayer-fork.
I did use the link again. It worked now 👍. Seems like SoundCloud issue
from lavaplayer-fork.
Related Issues (20)
- Failed to reply to interaction + full bot is down HOT 2
- Track loading issue. HOT 17
- Extract more tags from localtracks
- .wav file gives you an invalid audio format error HOT 1
- Stream overrun HOT 2
- Vimeo 'Cannot invoke "String.length()" because "this.input" is null'
- Expose playlist metadata in playlist response object HOT 5
- Not success status code: 403 HOT 29
- java.lang.NumberFormatException: For input string: "70M plays" HOT 1
- Video returned by YouTube isn't what was requested
- Issue with OggVorbis decoding in some local tracks HOT 9
- [Feature Request] Allow Java based resources as local tracks
- YouTube access token update failed HOT 7
- Failed to collect additional information on OGG stream
- Something broke when playing the track. HOT 1
- error
- AudioPlayer.provide() always returning null HOT 1
- Getting Required Library Not Found error on Windows 10
- Loading information for a YouTube track failed. (Status code 400) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavaplayer-fork.