turbot / steampipe-plugin-gcp

Use SQL to instantly query GCP resources across regions, projects and organizations. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/gcp
Apache License 2.0
39 stars 27 forks source link

Panic interface conversion error in GCP #587

Closed ramses999 closed 5 months ago

ramses999 commented 6 months ago

Describe the bug From time to time steampipe throws an error Error: rpc error: code = Internal desc = name-project: rpc error: code = Internal desc = hydrate function listCloudRunServices failed with panic interface conversion: interface {} is *gcp.projectInfo, not string (SQLSTATE HV000)

Steampipe version (steampipe -v) Steampipe v0.22.2

Plugin version (steampipe plugin list) gcp@latest | 0.52.0

To reproduce Set up multiple accounts (the more the better)

  1. Run command by type:
  2. STEAMPIPE_LOG_LEVEL=trace steampipe query "select 'gcp' as invsource, 'gcp_cloud_run_service' as invtype, project, location, name, title, client, uri, create_time, creator, ingress, annotations, tags from gcp_all.gcp_cloud_run_service" --output=csv > temp.csv
  3. Wait for an error

Also: it’s worth noting that the error is not limited to the “gcp_cloud_run_service” table; at least it was possible to reproduce it for gcp_compute_address

Expected behavior No errors

Additional Information As you can see in the screenshot, the error appeared only 7 times (nothing changed)

panic

Also discussion slack link

ramses999 commented 6 months ago

gcp.txt plugin-2024-05-16.log steampipe-2024-05-16.log database-2024-05-16.log