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

Error compiling #295

Open
r2DoesInc opened this issue Jul 5, 2024 · 1 comment
Open

Error compiling #295

r2DoesInc opened this issue Jul 5, 2024 · 1 comment

Comments

@r2DoesInc
Copy link

When building teller-cli I ran across this issue

error[E0599]: no method named `https_or_http` found for enum `std::result::Result` in the current scope
   --> teller-providers/src/providers/google_secretmanager.rs:65:22
    |
63  |                   hyper_rustls::HttpsConnectorBuilder::new()
    |                   ------------------------------------------
    |                   |
    |  _________________method `https_or_http` is available on `HttpsConnectorBuilder<WantsTlsConfig>`
    | |
64  | |                     .with_native_roots()
65  | |                     .https_or_http()
    | |                     -^^^^^^^^^^^^^ method not found in `Result<HttpsConnectorBuilder<WantsSchemes>, Error>`
    | |_____________________|
    |
    |
note: the method `https_or_http` exists on the type `HttpsConnectorBuilder<WantsSchemes>`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.25.0/src/connector/builder.rs:144:5
    |
144 |     pub fn https_or_http(self) -> ConnectorBuilder<WantsProtocols1> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: use the `?` operator to extract the `HttpsConnectorBuilder<WantsSchemes>` value, propagating a `Result::Err` value to the caller
    |
64  |                     .with_native_roots()?
    |                                         +
@r2DoesInc
Copy link
Author

I tried fixing the issue, the project compiles but the fix I applied is causing the build actions to fail on github, so Im not sure that its a valid solution - I just added the ? suggested in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant