I tried to run the icx-proxy
but received the following error after a GET request.
❯ icx-proxy
version: 0.7.0
Dec 19 13:20:19.319 INFO Log Level: INFO
Dec 19 13:20:19.319 INFO Starting server. Listening on http://127.0.0.1:3000/
thread 'tokio-runtime-worker' panicked at 'Could not create HTTP client.: reqwest::Error { kind: Builder, source: "Unknown TLS backend passed to `use_preconfigured_tls`" }', /Users/moritz/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-agent-0.9.0/src/agent/http_transport.rs:93:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@ericswanson
I’m guessing you built the ic-proxy binary from scratch recently.
If so, I believe you’re running into this bug with the agent-rs library.
1 Like
I actually read that thread but didn’t apply the change you suggested as the Cargo.toml
already references the local version:
ic-agent = { path = "../ic-agent", version = "0.10" }
But I will try it and will get back to you, many thanks!
1 Like
icx-proxy is now hosted here: GitHub - dfinity/icx-proxy: A rust-based command line tool to serve as a gateway for a Internet Computer replica.
The reason you are seeing that error is probably because icx-proxy/Cargo.toml at main · dfinity/icx-proxy · GitHub still references ic-agent 0.9. The error you’re seeing started happening when building ic-agent 0.9 with reqwest 0.11.6 (and maybe 0.11.7).
Another option for running icx-proxy is to run the version bundled with dfx, which should avoid this problem: $(dfx cache show)/icx-proxy <parameters>
1 Like