Lavalink icon indicating copy to clipboard operation
Lavalink copied to clipboard

SessionId no longer valid even it's a new connection

Open ThePedroo opened this issue 4 years ago • 2 comments

Description

The bot doesn't send any sound, Lavalink-side doesn't show any error, but in bot-side, Lavalink send a:

{"op":"event","reason":"Session is no longer valid.","code":4006,"byRemote":true,"type":"WebSocketClosedEvent","guildId":"713539677982031902"}

And it continues with the "playerUpdate". I don't really know if the connection was closed (since the playerUpdate doesn't stop)

Version info

Client used: None

Output of java -version:

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)

java -jar Lavalink.jar --version:

Version:        3.3.2.2
Build:          1155
Build time:     28.11.2020 11:50:13 UTC
Branch          dev
Commit:         23c883a
Commit time:    28.11.2020 11:42:10 UTC
JVM:            11.0.11
Lavaplayer      1.3.61

(Maybe it's not the latest one, but I tried with many versions)

ThePedroo avatar Oct 25 '21 04:10 ThePedroo

I got this problem again, but I do not see a problem, since the sessionId seems fine, by the way, is plays for some seconds, than the Session is no longer valid appears

ThePedroo avatar Feb 11 '22 15:02 ThePedroo

What I am sending as voiceUpdate:

{
  op: 'voiceUpdate',
  guildId: '927940243590627338',
  sessionId: 'c9059a31964383017a26aa82ffb0c1cf',
  event: {
    token: 'cfbd1aad936e88cc',
    guild_id: '927940243590627338',
    endpoint: 'brazil9916.discord.media:443'
  }
}

ThePedroo avatar Feb 11 '22 15:02 ThePedroo