#TlsError { kind: Loading, source: Some(MissingOrMalformedExtensions)

1 messages · Page 1 of 1 (latest)

opaque swallow
#

in a fresh project im trying

#[tokio::main]
async fn main() {
    let mut shard = Shard::new(
        ShardId::ONE,
        "<TOKEN_REDACTED>".to_string(),
        Intents::GUILD_MESSAGES
    );
}

and i'm getting a TlsError { kind: Loading, source: Some(MissingOrMalformedExtensions) } (full stacktrace: https://paste.rs/7Yegq.txt)
here someone else had the same problem: https://discordapp.com/channels/745809834183753828/745815089067851807/974406718320697434
but unlike for them, the suggested solution didn't work for me (i tried all 3 TLS features)
any ideas? @urban wasp did you ever figure this out?

real stirrup
#

You need to disable default features to be able to switch the TLS backend

#

The error is saying something along the likes of "your OS' certificate store is faulty". The rustls-webpki-roots feature should work as it's totally independent from your OS

opaque swallow
#

forgot about disabling default features. webpki does work fine. any idea how to fix the os certificate store on windows?

real stirrup
#

It contains the responsible code, better ask there