So I'm pulling my hair out over this and reaching out here for help. I'm trying to set up a service account with Cloud Translation, and Text-to-speech enabled, but we keep getting this response:
[error] { "message": "Cloud IAM permission 'cloudtranslate.generalModels.predict' denied. ", "code": 7, "status": "PERMISSION_DENIED", "details": [] }
I have confirmed that the service account has the "cloudtranslate.generalModels.predict" permission, and showing the "Cloud Translation API User" role. We've also confirmed that it works with a different Service account that my colleague set up in his personal Google console profile. But, we need this setup with an account through our org.
I did verify that the service account has the permission from the https://console.cloud.google.com/iam-admin/troubleshooter so and that my organization's admin sees that the service account is granted access through ancestor policies.
So what else can we check?
Solved! Go to Solution.
Ok, turned out we had a hard-coded value for resource location, which was set to the wrong project. So of course it was coming back as permission denied.
Ok, turned out we had a hard-coded value for resource location, which was set to the wrong project. So of course it was coming back as permission denied.
Hi Everyone,
I am facing the same error. I am using a separate cloud Linux and using nodejs client library
I ran into this same issue and it was also the wrong "Project ID" being passed in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |