question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lava won't load playlist sometimes

See original GitHub issue

Description

when i try to load youtube playlists sometimes work but majority of the time i get this error Error: Request failed with status code 500 OR Request processing failed; nested exception is java.util.concurrent.CompletionException: java.lang.NullPointerException

i’m sure it’s a lavalink issue because i have my friend using Lavalink4NET (i’m using erela.js) and he is getting same errors

Version info

Client used: erela.js@2.0.0

Output of java -version:

java version "14.0.2" 2020-07-14
Java(TM) SE Runtime Environment (build 14.0.2+12-46)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
2020-09-22 05:58:13.457  INFO 24017 --- [ XNIO-1 task-11] l.server.player.AudioLoaderRestHandler   : GET /loadtracks
2020-09-22 05:58:13.457  INFO 24017 --- [der-2-thread-39] c.s.l.e.y.tools.ip.Ipv6Block             : /2001:470:ca51:12a9:2170:b2b4:fb95:fcf3
2020-09-22 05:58:13.859  INFO 24017 --- [der-2-thread-39] c.s.l.e.y.tools.ip.Ipv6Block             : /2001:470:ca51:3a81:f89c:e16c:55b6:45f
2020-09-22 05:58:14.232  INFO 24017 --- [der-2-thread-39] c.s.l.e.y.tools.ip.Ipv6Block             : /2001:470:ca51:ed3:592e:ee14:7540:e0bb
2020-09-22 05:58:14.508  INFO 24017 --- [der-2-thread-39] lavalink.server.player.AudioLoader       : Loaded playlist POP Music Playlist 2020
2020-09-22 05:58:14.510 ERROR 24017 --- [  XNIO-1 task-8] io.undertow.request                      : UT005023: Exception handling request to /loadtracks

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.util.concurrent.CompletionException: java.lang.NullPointerException
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1013) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:645) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:81) ~[undertow-servlet-2.0.26.Fin
t-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:186) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.AsyncContextImpl$2$1.handleRequest(AsyncContextImpl.java:194) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) ~[undertow-core-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.AsyncContextImpl$2.run(AsyncContextImpl.java:191) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.AsyncContextImpl$6.run(AsyncContextImpl.java:465) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.AsyncContextImpl$TaskDispatchRunnable.run(AsyncContextImpl.java:584) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]
Caused by: java.util.concurrent.CompletionException: java.lang.NullPointerException
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:645) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2137) ~[na:na]
        at lavalink.server.player.AudioLoader.playlistLoaded(AudioLoader.java:89) ~[classes!/:na]
        at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:447) ~[lavaplayer-1.3.50.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:419) ~[lavaplayer-1.3.50.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:218) ~[lavaplayer-1.3.50.jar!/:na]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
        ... 3 common frames omitted
Caused by: java.lang.NullPointerException: null

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
freyacodescommented, Sep 24, 2020

I believe this issue has been fixed.

@Majoramari those don’t seem related to this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lavaplayer 1.3.73 Unable to load youtube playlists #602
Today across various bots and lavalink instances we are unable to load any youtube playlists.
Read more >
Entity
Lava allows you to retrieve data from any entity using a simple and consistent ... (double quotes won't work as they are needed...
Read more >
Dr. Lava
I get these kinda comments on my (dormant for 2 years) Dr Lava channel sometimes. I sincerely appreciate the sentiment, but at most...
Read more >
16 Vape Device Problems - and How to Fix Them!
The enthusiasts in these shops are often experts in diagnosing and fixing problems with vape ... If that doesn't work, it may be...
Read more >
Pacaya Volcano in Guatemala (Ft. 2021 Lava Flow)
***PLEASE NOTE: LAVA FLOW WAS FROM THE 2021 ERUPTION. WHILE YOU CAN STILL BOOK HIKING TOURS OF PACAYA FROM ANTIGUA, THERE WON'T BE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found