serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
391 stars 111 forks source link

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Ws(Json(Error("invalid value: integer `18`, expected opcode in [0--9] + [12--13]", line: 1, column: 8)))', src\main.rs:159:218 #202

Closed thedtvn closed 11 months ago

thedtvn commented 11 months ago

Songbird version: songbird = { version = "0.3.2", features = ["driver"] }

Rust version (rustc -V): rustc 1.72.0 (5680fa18f 2023-08-23)

Serenity/Twilight version: custom client

Description:

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Ws(Json(Error("invalid value: integer `18`, expected opcode in [0--9] + [12--13]", line: 1, column: 8)))', src\main.rs:159:218

got this err on connect

Steps to reproduce:

let mut dr = Driver::new(Config::default());
 dr.connect(ConnectionInfo {channel_id: Some(ChannelId(channel_id)), endpoint: endpoint.to_string(), guild_id: GuildId(guild_id), session_id: session_id.clone(), token, user_id: UserId(user_id)}).await.unwrap();
FelixMcFelix commented 11 months ago

Could you please provide a more detailed stacktrace (e.g., RUST_BACKTRACE=full)? Currently this is inadequate for me to see where in songbird the panic has occurred.

thedtvn commented 11 months ago

Could you please provide a more detailed stacktrace (e.g., RUST_BACKTRACE=full)? Currently this is inadequate for me to see where in songbird the panic has occurred.

@FelixMcFelix is err on call connect

thedtvn commented 11 months ago

close fix when down ver of shuttle

Erk- commented 11 months ago

I believe this is a duplicate of https://github.com/serenity-rs/songbird/issues/172