-
Notifications
You must be signed in to change notification settings - Fork 25
INVALID_ARGUMENT error on gcloud asset export --content-type relationship #298
Comments
Hi @kbroughton, Thank you for the report. It looks like the both gcloud and the library is not surfacing the detailed error. Could you share the version of |
bin/pip show google-cloud-asset I had been using installs of the complete gcloud or sdk. I followed the install instructions in the readme to only install google-cloud-asset for this test. Same result. |
This was working in August, but it is failing now with the subject error gcloud beta asset export --organization=xxxxxxx --content-type relationship --output-path gs://xxxx/xxxx/relationships Tried alpha, beta, and GA versions of gcloud 358.0 |
from google.cloud import asset_v1 output_config = asset_v1.OutputConfig()
The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@sirius-ed-hammond Thanks for leaving a comment, it's helpful to know this worked in the past but doesn't now. I'm able to reproduce the error through gcloud using my own project. I'm in the process of filing an issue on the Cloud Asset API team's issue tracker and will get back to you when I have a response. |
Googlers, see internal issue 201301739. |
CC @lvvvvvf |
We used to have preview in gcloud beta with 1 relationship. The original plan is GA at the end of this month, so I turned all gcloud to the v1 version which could only be used with for enable listed consumers now. After GA, all will be available to public. Now there may be some changes to the plan, if so, I will change back the beta behavior. (next month) Sorry about the inconvenience. |
If I understand correctly, you disabled the public /beta/ in deference to private GA release for select customers, so people who were using the public beta can no longer do so. Correct? |
The plan is public GA 9/30, if so, all will turn public, the issue will be solved. If the plan changed, I will switch back the gcloud beta to serve public the one relationship type next month. Thanks |
It has been a few months ... the relationship content-type is still broken for alpha, beta, and GA command invocations.
|
Created issue tracker https://issuetracker.google.com/issues/209387751 to help raise visibility. |
Hi @sirius-ed-hammond @kbroughton, I'm going to close this issue as a duplicate of https://issuetracker.google.com/issues/209387751 as the issue is specific to product API rather than the client library. |
Anthonios Partheniou,
I agree the issue tracker item<https://issuetracker.google.com/issues/209387751> should be sufficient to obtain resolution and the Git Issue<#298> is redundant.
Is there an expected resolution estimate?
Seems the logic is all there and ready for GA, but have been locked to selected customer accounts. When will that restriction be lifted so the interface works as is used to and is published in the documentation?
From: Anthonios Partheniou ***@***.***>
Reply-To: googleapis/python-asset ***@***.***>
Date: Saturday, February 5, 2022 at 11:36 AM
To: googleapis/python-asset ***@***.***>
Cc: Ed Hammond ***@***.***>, Mention ***@***.***>
Subject: [EXTERNAL] Re: [googleapis/python-asset] INVALID_ARGUMENT error on gcloud asset export --content-type relationship (#298)
Hi @sirius-ed-hammond<https://urldefense.com/v3/__https:/github.com/sirius-ed-hammond__;!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-DikKYX5w$> ,
I'm going to close this issue as a duplicate of https://issuetracker.google.com/issues/209387751<https://urldefense.com/v3/__https:/issuetracker.google.com/issues/209387751__;!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-BI5D7Ivw$> as the issue is specific to product API rather than the client library.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/googleapis/python-asset/issues/298*issuecomment-1030655459__;Iw!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-BlFlxE7A$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ASCHE572D6MH5SFHCLBRPMLUZVGWXANCNFSM5EU35H7Q__;!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-BFuu1O6Q$>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-BJSUDBKQ$> or Android<https://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Ly9OQR1JJQ!JwH7nEljNuiAicEOMXptgmW76k5suuKbNvd_9UQ8nPnn3tTSmxQwFlS46-AnltAJ-g$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you.
|
Environment details
Google Cloud SDK 358.0.0
alpha 2021.09.17
beta 2021.09.17
bq 2.0.71
core 2021.09.17
gsutil 4.68
Steps to reproduce
According to the docs https://cloud.google.com/sdk/gcloud/reference/asset/export?hl=it
asset export should work with content-type=relationship.
It works with content-type=resource:
But this does not:
ERROR: (gcloud.beta.asset.export) code: 400
message: Request contains an invalid argument.
status: INVALID_ARGUMENT
Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: