Kixunil / btc-rpc-proxy

Finer-grained permission management for bitcoind.
MIT License
63 stars 18 forks source link

Error: missing authentication information #16

Closed jamesdorfman closed 3 years ago

jamesdorfman commented 3 years ago

Hi. I tried running the proxy using the default ./btc_rpc_proxy.toml. The only change I made was to update the Bitcoin RPC username and password.

I ran

cargo run --release

However, I received the error

Error: missing authentication information

Is this expected behaviour? It looks like the the config file is not being found....

More specifically, within src/create_state.rs, the varaibles config.bitcoind_user and config.bitcoind_password are both set to None in

    let auth = AuthSource::from_config(
        config.bitcoind_user,
        config.bitcoind_password,
        config.cookie_file,
    )?;

Not sure why that might be. As I said, I'm using the default btc_rpc_proxy.toml which is provided in the repo.

Thanks for the help!

Kixunil commented 3 years ago

Hi, sorry, the auto-loading feature was removed as it was annoying if one has both mainnet and regtest and I forgot to update the README. Just use cargo run --release -- --conf btc_rpc_proxy.toml and it should work. Please LMK if it helps.

jamesdorfman commented 3 years ago

That worked great. Thanks for the help and for the quick reply!