Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region related error when i try to list cloud_run_services #696

Open
omeredizaydin opened this issue Jan 13, 2025 · 3 comments
Open

region related error when i try to list cloud_run_services #696

omeredizaydin opened this issue Jan 13, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@omeredizaydin
Copy link

Describe the bug

When i execute a sql query to fetch Cloud Run Services on GCP, I am getting an error that says

"ERROR: rpc error: code = Unknown desc = productdevdev_gcp_security: googleapi: Error 400: region: Unsupported region northamerica-south1 Details: [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "description": "Unsupported region northamerica-south1", "field": "region" } ] } ] , badRequest (SQLSTATE HV000)"

My Query is something like:
select * from gcp_cloud_run_service;
or
select * from gcp_cloud_run_service where location <>'northamerica-south1';

I try also to use region column instead of location but it says there is no such a column.

Steampipe version (steampipe -v)
v1.0.1

Plugin version (steampipe plugin list)
v1.0.0

To reproduce

  1. Select STEAM PIPE under pipes
  2. Under Query tab, select tenant_name_GCP_SECURITY (in my case)
  3. Select gcp_cloud_run_service table.

Error will show up. I intended to resolve the issue by changing the query but it still occurs.

Expected behavior
I expected it to list cloud_run_services on GCP. I made sure that i have required permissions on GCP side.

@omeredizaydin omeredizaydin added the bug Something isn't working label Jan 13, 2025
@ParthaI ParthaI self-assigned this Jan 13, 2025
@ramses999
Copy link

Hi, I am also getting similar error in below query
select project, location, name, title, client, uri, create_time, creator, ingress, annotations, tags from gcp.gcp_cloud_run_service
then I get an error

[
  {
    "@type": "type.googleapis.com/google.rpc.BadRequest",
    "fieldViolations": [
      {
        "description": "Unsupported region northamerica-south1",
        "field": "region"
      }
    ]
  }
]

Can you fix this?

@edizduman
Copy link

Hi,

When running an SQL query to retrieve Cloud Run Services on GCP, I encounter the following error:

"fieldViolations": [{ "description": "Unsupported region northamerica-south1", "field": "region" }]}]

SELECT * FROM gcp_cloud_run_service;

@halit-c4c
Copy link

Hi, I am getting the exact same error when i execute the sql query below.

select
*
from
gcp_cloud_run_service
limit
100;

ERROR: rpc error: code = Unknown desc = userName: googleapi: Error 400: region: Unsupported region northamerica-south1 Details: [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "description": "Unsupported region northamerica-south1", "field": "region" } ] } ] , badRequest (SQLSTATE HV000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants