aquelemiguel / parrot

🦜 A hassle-free, highly performant, self-hosted Discord music bot with YouTube and Spotify support. Powered by yt-dlp.
MIT License
136 stars 44 forks source link

Panics on summon #238

Closed lordzsolt closed 1 year ago

lordzsolt commented 1 year ago

📝 Description

When I attempt to do /summon or /play, it causes a panic with the following error:

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Driver(Ws(WsClosed(Some(CloseFrame { code: Library(4006), reason: "Session is no longer valid." }))))', src/commands/summon.rs:42:48

I also see The application did not respond in Discord, a few seconds before the panic happens.

I tried the bot a month ago, worked wonderfully.

I tried it today, it doesn't work. Other commands such as /queue and /leave are working.

As far as I know, nothing changed between today and a month ago.

Not really sure how to debug what the problem is.

🪜 Reproduction Steps

  1. Run the bot Tried running it in Debug mode through CLion, or running the binary from cargo build --release
  2. Type /summon in Discord The bot successfully joins the channel
  3. Observe the panic in the output

ℹ Environment / Computer Info

📸 Screenshots

No response