tabledog / tdog-cli

Download your Stripe account to a SQLite database.
MIT License
18 stars 2 forks source link

Proxy is always overwritten in debug mode #2

Open Dador opened 1 year ago

Dador commented 1 year ago

I think it's better to always load proxy from the config and do not force it via code: https://github.com/tabledog/tdog-cli/blob/master/crates/tdog_core/src/providers/stripe/watch.rs#L90 I had tcp connect error error no matter what I do and it was ambiguous why it was happening. Turns out proxy was enabled in debug mode even if it's disabled in config. HTTP request failed: Err(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.stripe.com")), port: None, path: "/v1/account", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) })