Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Error: ERROR: INVALID_ARGUMENT: Request contains an invalid argument

I'm making a voice recognition program, but I can't seem to be able to send a request to the Cloud. Whenever I try:

gcloud projects add-iam-policy-binding [PROJECT_ID] --member "serviceAccount:[SEVICE-ACCOUNT-NAME]@[PROJECT_ID].iam.gserviceaccount.com" --role "roles/owner"

I get this:

ERROR: (gcloud.projects.add-iam-policy-binding) INVALID_ARGUMENT: Request contains an invalid argument.

Can anybody help?

like image 611
Rishy Avatar asked May 03 '26 08:05

Rishy


1 Answers

As specified in the documentation, you should write the command like:

gcloud projects add-iam-policy-binding YOUR_PROJECT_ID --member "serviceAccount:NAME@YOUR_PROJECT_ID.iam.gserviceaccount.com" --role "roles/owner"

This should work for you!

like image 163
ericcco Avatar answered May 04 '26 21:05

ericcco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!