steampipe icon indicating copy to clipboard operation
steampipe copied to clipboard

connect: network is unreachable error

Open valankar opened this issue 3 years ago • 0 comments

Describe the bug I started getting the error:

$ steampipe query "select symbol, regular_market_price, regular_market_change_percent, regular_market_time from finance_quote where symbol in ('SCHA')" --output csv
Error: failed to connect to `host=localhost user=root database=postgres`: dial error (dial tcp [::1]:9193: connect: network is unreachable)

I removed the .steampipe directory, re-installed plugins, and then it worked:

$ mv .steampipe{,.old}
$ steampipe plugin install finance

finance              [====================================================================] Done

Installed plugin: finance@latest v0.3.0
Documentation:    https://hub.steampipe.io/plugins/turbot/finance

$ steampipe query "select symbol, regular_market_price, regular_market_change_percent, regular_market_time from finance_quote where symbol in ('SCHA')" --output csv
symbol,regular_market_price,regular_market_change_percent,regular_market_time
SCHA,38.37,-0.36354038,2022-10-12T20:00:00Z

Steampipe version (steampipe -v) steampipe version 0.16.4

To reproduce See above.

Expected behavior Some useful error as to what is wrong, or what to fix.

I can provide the old .steampipe directory. It is 182 MB. Just let me know.

valankar avatar Oct 13 '22 07:10 valankar