#UnsupportedCriticalExtension error

1 messages · Page 1 of 1 (latest)

silent sedge
#
    let (shard, mut events) = Shard::new(config.bot_token.clone(), Intents::GUILD_MEMBERS);

    shard.start()
        .await
        .unwrap();

gives me the error

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ShardStartError { kind: Establishing, source: Some(Tls(Webpki(UnsupportedCriticalExtension))) }'

but I cannot find anything on this error except this link:
#1018174873345986640 message
and the image below

rotund delta
#

Which features of twilight-http and twilight-gateway do you use and on which os is this?

silent sedge
#

Windows 11

rotund delta
#

Try to do

twilight-gateway = { version = "0.14.0", default-features = false, features = ["rustls-webpki-roots", "zlib-stock"] }
twilight-http = { version = "0.14.0", default-features = false, features = ["rustls-webpki-roots", "compression"] }
silent sedge
#

ok thanks

#
the package `package_name` depends on `twilight-http`, with features: `compression` but `twilight-http` does not have these features.```
rotund delta
#

oh it is decompression my error

silent sedge
#

i assume i need to remove compression?

#

ah ok

#

yup working now thanks

#

when i switch to linux would i be able to remove the rustls-webpki-roots?

rotund delta
#

This will not really change anything with performance it just changes where tls roots is loaded from. webpki is the roots that mozilla distribute with firefox

silent sedge
#

oh alrighty thanks

rotund delta
#

There are some issues with mac and windows certificates sometimes which is what you ran into