turbot / steampipe-export

Steampipe Export is a zero-ETL CLI to fetch data from cloud services and APIs. Hundreds of plugins with thousands of documented examples.
https://steampipe.io
Apache License 2.0
8 stars 1 forks source link

Export CLI is not returning a non-zero code for timeouts #72

Closed pskrbasu closed 4 months ago

pskrbasu commented 5 months ago

I'm seeing this in stderr:

[ERROR] 171765147897: listStorageAccounts: api error="storage.AccountsClient#List: Failure sending request: StatusCode=0 -- Original Error: Get \"https://management.azure.com/subscriptions/cc0022a0-721e-4cb2-93dc-d0105cf5a985/providers/Microsoft.Storage/storageAccounts?api-version=2022-05-01\": dial tcp 4.150.240.10:443: i/o timeout"
[WARN]  171765147897: doList callHydrateWithRetries (azure-171765147897) returned err storage.AccountsClient#List: Failure sending request: StatusCode=0 -- Original Error: Get "https://management.azure.com/subscriptions/cc0022a0-721e-4cb2-93dc-d0105cf5a985/providers/Microsoft.Storage/storageAccounts?api-version=2022-05-01": dial tcp 4.150.240.10:443: i/o timeout
[WARN]  171765147897: QueryData StreamError storage.AccountsClient#List: Failure sending request: StatusCode=0 -- Original Error: Get "https://management.azure.com/subscriptions/cc0022a0-721e-4cb2-93dc-d0105cf5a985/providers/Microsoft.Storage/storageAccounts?api-version=2022-05-01": dial tcp 4.150.240.10:443: i/o timeout (azure-171765147897)
[WARN]  171765147897: streamRows execution has failed: azure-171765147897 - calling queryCache.AbortSet (azure: exceeded allowed timeout)
[WARN]  171765147897: queryData.streamRows returned error: azure: exceeded allowed timeout
[WARN]  171765147897: executeForConnection azure returned error azure: exceeded allowed timeout, writing to CHAN
[WARN]  171765147897: error channel received azure: exceeded allowed timeout

but the export cli is returning a 0 exit code