Giter VIP home page Giter VIP logo

Comments (6)

AADI0009 avatar AADI0009 commented on July 17, 2024 2

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.

jarcopolo avatar jarcopolo commented on July 17, 2024

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.

Walkyst avatar Walkyst commented on July 17, 2024

@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?

from lavaplayer-fork.

jarcopolo avatar jarcopolo commented on July 17, 2024

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 avatar phamleduy04 commented on July 17, 2024

@phamleduy04 @jarcopolo @AADI0009 From what country you do requests?

I request using VPN to Houston, TX, US

from lavaplayer-fork.

phamleduy04 avatar phamleduy04 commented on July 17, 2024

I did use the link again. It worked now 👍. Seems like SoundCloud issue

from lavaplayer-fork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.