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.

Failed loading autoplay station!

See original GitHub issue

Describe the bug When spotify attempts to find the next song to play using autoplay it fails.

To Reproduce Select a single song and play it.

Expected behavior Skipping to next track when no queue is present should function.

Screenshots/Stracktraces/Logs

Jan 01 01:18:41 spotipi java[6566]: 2021-01-01 01:18:41,944 DEBUG Player:293 - Received command: SkipNext
Jan 01 01:18:41 spotipi java[6566]: 2021-01-01 01:18:41,951 TRACE MercuryClient:140 - Send Mercury request, seq: 8, uri: hm://autoplay-enabled/query?uri=spotify:user:zager0n:collection, method: GET
Jan 01 01:18:42 spotipi java[6566]: 2021-01-01 01:18:42,217 TRACE MercuryClient:183 - Handling packet, cmd: MercuryReq, seq: 8, flags: 1, parts: 1
Jan 01 01:18:42 spotipi java[6566]: 2021-01-01 01:18:42,220 TRACE MercuryClient:140 - Send Mercury request, seq: 9, uri: hm://radio-apollo/v3/stations/spotify:user:zager0n:collection, method: GET
Jan 01 01:18:42 spotipi java[6566]: 2021-01-01 01:18:42,494 TRACE MercuryClient:183 - Handling packet, cmd: MercuryReq, seq: 9, flags: 1, parts: 1
Jan 01 01:18:42 spotipi java[6566]: 2021-01-01 01:18:42,497 FATAL Player:543 - Failed loading autoplay station!
Jan 01 01:18:42 spotipi java[6566]: xyz.gianlu.librespot.mercury.MercuryClient$MercuryException: status: 400
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.mercury.MercuryClient.sendSync(MercuryClient.java:90) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.player.Player.loadAutoplay(Player.java:527) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.player.Player.handleSkipNext(Player.java:461) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.player.Player.command(Player.java:312) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.player.state.DeviceStateHandler.notifyCommand(DeviceStateHandler.java:110) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.player.state.DeviceStateHandler.onRequest(DeviceStateHandler.java:176) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.dealer.DealerClient.lambda$handleRequest$1(DealerClient.java:107) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.common.AsyncWorker.lambda$new$0(AsyncWorker.java:20) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at xyz.gianlu.librespot.common.AsyncProcessor.lambda$submit$1(AsyncProcessor.java:40) ~[librespot-java-api-v1.5.3.jar:1.5.3]
Jan 01 01:18:42 spotipi java[6566]:         at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
Jan 01 01:18:42 spotipi java[6566]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
Jan 01 01:18:42 spotipi java[6566]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
Jan 01 01:18:42 spotipi java[6566]:         at java.lang.Thread.run(Thread.java:834) [?:?]
Jan 01 01:18:42 spotipi java[6566]: 2021-01-01 01:18:42,538 DEBUG DealerClient:109 - Handled request. {key: b42df0d2-ac13-462a-8e92-b7ef65dd61fb, result: SUCCESS}

Version/Commit Release 1.5.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
devgianlucommented, Jan 4, 2021

This is correct behavior. Not all contexts can be “autoplayed”. Is the client still responsive after this? Are you able to play something else?

1reaction
devgianlucommented, Jan 4, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome Not Auto-Playing Your Radio Station? Here's How to…
If auto play is enabled, it causes an issue in Chrome when people click the play button on your player. Instead, you should...
Read more >
Web Troubleshooting: Auto-playback - Pandora
If Pandora is not playing automatically when you open your browser, you may need to adjust your browser's autoplay preferences.
Read more >
Autoplay not working in Windows 10/11 [COMPLETE GUIDE]
How can I fix Autoplay if it isn't working in Windows 10? · 1) Reset the Autoplay settings · 2) Check Registry Editor...
Read more >
Browser denying javascript play() - Stack Overflow
This was working fine a while ago but now I get this error: ⚠ Autoplay is only allowed when approved by the user,...
Read more >
Radio autoplay when playlists end - The Spotify Community
Error - At the end of a playlist an error pops up stating "this song is not available" then begins to play a...
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