Skip to content

x86平台musl编译的时候http在发起https请求的时候会报错 #73

@ipconfiger

Description

@ipconfiger
thread 'tokio-runtime-worker' panicked at /Users/alex/.cargo/registry/src/github.com-25cdd57fae9f0462/rustls-0.23.25/src/crypto/mod.rs:249:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::option::expect_failed
   3: rustls::client::client_conn::ClientConfig::builder_with_protocol_versions
   4: rustls::client::client_conn::ClientConfig::builder
   5: gostd_http::client::Transport::roundTrip
   6: gostd_http::client::Client::Do
   7: alipay_sdk_rust::pay::PayClient::execute
   8: <alipay_sdk_rust::pay::PayClient as alipay_sdk_rust::pay::Payer>::trade_query
   9: unin_pay_gateway::alipay_functions::check_trade
  10: unin_pay_gateway::services::pay_service::PayServices::check_un_checked_task::{{closure}}
  11: unin_pay_gateway::app::init::{{closure}}::{{closure}}
  12: tokio::runtime::task::core::Core<T,S>::poll
  13: tokio::runtime::task::harness::Harness<T,S>::poll
  14: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
  15: tokio::runtime::scheduler::multi_thread::worker::Context::run
  16: tokio::runtime::context::scoped::Scoped<T>::set
  17: tokio::runtime::context::runtime::enter_runtime
  18: tokio::runtime::scheduler::multi_thread::worker::run
  19: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  20: tokio::runtime::task::core::Core<T,S>::poll
  21: tokio::runtime::task::harness::Harness<T,S>::poll
  22: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions