Lavalink4NET icon indicating copy to clipboard operation
Lavalink4NET copied to clipboard

"Player stopped" status when trying to play music / Player not playing anything when using YouTube as a source

Open tnkbang opened this issue 11 months ago • 4 comments

Describe the bug I'm not clear on where exactly the problem occurs. But since the evening of March 29, 2024, when I try to play music, I always get the status "Player stopped". At first, I thought it was because of my source code so I tried doing it on Bot Sample but the result is still the same.

To Reproduce Steps to reproduce the behavior:

  1. Start Bot
  2. Using slash command '/play'
  3. Bot connect voice channel but not playing music
  4. In console, received the "Player stopped" status.

Screenshots I'll take a screenshot of all my console lines for you to see if it's helpful.

info: Lavalink4NET.LavalinkNode[4]
      [Lavalink-0HN2HSMRQI5V7] Node is ready (session identifier: 33675uusltbxwnoj).
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 264.5318ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 269.5474ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 2.0215ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 6.1525ms - 200
info: Lavalink4NET.Players.Vote.VoteLavalinkPlayer[3]
      [VoteLavalinkPlayer@1082505225098756127 on default] Player connected to channel 1082505229532139574.
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 2.0247ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 4.8408ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request GET http://localhost:2333/v4/loadtracks?identifier=ytsearch%3a%C4%91en
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request GET http://localhost:2333/v4/loadtracks?identifier=ytsearch%3a%C4%91en
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 499.1641ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 503.0305ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 3.1135ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 6.9107ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
      Start processing HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request PATCH http://localhost:2333/v4/sessions/33675uusltbxwnoj/players/1082505225098756127
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 2.4655ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 6.7282ms - 200
info: Lavalink4NET.Players.Vote.VoteLavalinkPlayer[7]
      [VoteLavalinkPlayer@1082505225098756127 on default] Player stopped.

Libraries in use:

  • Lavalink4NET 4.0.18
  • Lavalink 4.0.4
  • Discord.Net 3.14.1

Additional context If this is not a bug of Lavalink4Net, I sincerely apologize for bothering you. And if you can help me solve this problem, I would be very grateful to you.

tnkbang avatar Apr 01 '24 01:04 tnkbang

Hi, @tnkbang,

this might be related to an ongoing issue with Lavalink (not Lavalink4NET itself). You should be able to download a newer version with the fix applied from here: https://serux.pro/Lavalink-v4-403-retry.jar (Link directly from Lavalink server itself). The issue occurred a few days ago the first time and was reported on the L4N support server. It looks like this is currently only affecting YouTube and no other source. The fix seemed to fix it for all the reports I got until now

angelobreuer avatar Apr 01 '24 01:04 angelobreuer

Dear @angelobreuer, Thank you for your reply, I will implement on the Lavalink update you instructed. Also close this issue. Once again, sorry for bothering you. Thank you very much.

tnkbang avatar Apr 01 '24 01:04 tnkbang

No need to be sorry about anything, helping others is the reason why this issue tracker exists 😊

Maybe we can leave the issue open for a few days, so others will notice it quicker when they have the same problem

(changed title for better visibility)

angelobreuer avatar Apr 01 '24 01:04 angelobreuer

AHHHH I have been trying to fix this for days. Thx Guys!

Koin101 avatar Apr 01 '24 21:04 Koin101

(Closed due to stale)

angelobreuer avatar Jun 05 '24 07:06 angelobreuer