Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not work #1937

Closed
AlexW00 opened this issue Sep 29, 2022 · 5 comments
Closed

Example does not work #1937

AlexW00 opened this issue Sep 29, 2022 · 5 comments
Labels
i-support Support issue; should be a discussion.

Comments

@AlexW00
Copy link

AlexW00 commented Sep 29, 2022

  • What unexpected behavior are you experiencing?
    • The example provided in the readme does not work. When starting it with a valid discord bot token, I get the following error:
Error: creating the TLS connector resulted in a error

Caused by:
    0: could not load native certificates
    1: BadDer
  • What are you running your code on? Tell us your operating system, tech stack, and any other pertinent information.
    • macOS, example project
  • What feature flags are you using?
    • nothing configured
  • How can we reproduce the issue?
    • run cargo run with the example from the readme
@7596ff
Copy link
Contributor

7596ff commented Sep 29, 2022

Are there any available updates to Safari in macOS?

@BlackHoleFox
Copy link
Member

You can run with the rustls-webpki-roots feature to fix the immediate issue. things like rustls/rustls-native-certs#15 happen where the OS and Rust crates disagree about parsing a cert. Beyond that yeah, try updating macOS.

@7596ff 7596ff added the i-support Support issue; should be a discussion. label Sep 29, 2022
@AlexW00
Copy link
Author

AlexW00 commented Sep 30, 2022

Are there any available updates to Safari in macOS?

No updates available.

@AlexW00
Copy link
Author

AlexW00 commented Sep 30, 2022

You can run with the rustls-webpki-roots feature to fix the immediate issue. things like rustls/rustls-native-certs#15 happen where the OS and Rust crates disagree about parsing a cert. Beyond that yeah, try updating macOS.

How to run the example with this feature?

@Erk-
Copy link
Member

Erk- commented Sep 30, 2022

How to run the example with this feature?

Something like

twilight-http = { version = "0.13", default-features = false, features = ["rustls-webpki-roots", "decompression"] }
twilight-gateway = { version = "0.13", default-features = false, features = ["rustls-webpki-roots", "zlib-stock"] }

@7596ff 7596ff closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i-support Support issue; should be a discussion.
Projects
None yet
Development

No branches or pull requests

4 participants