Hi!
For some reason, I cannot enable Document AI API in my app.
I am trying to utilize the image recognition function in this API. Following the instructions for Setting up Application Default Credentials, I generated a service account and a key for said account. Then I fed this key to my C# application as described in Document AI client libraries (C# section), but in the end I receive an error:
Detail=\"Permission 'documentai.processors.processOnline' denied on resource '//documentai.googleapis.com/projects/*my_project_ID*/locations/us/processors/*my_processor_ID*:process' (or it may not exist).\")",
Take note, that I redacted my Project and Processor ID in the error message above.
I've checked all permissions and IAM settings, and it appears to be correct.
I've done a quick search on this forum and looked elsewhere but weren't able to find a concrete answer. Any help or pointing in the general vicinity of the correct answer are greatly appreciated.
Solved! Go to Solution.
Thank you for the prompt answer!
2. Check Service Account Permissions solved my problem. I did it all, except №2! Since I usually limit API keys and service account based on domain or IP, I didn't even pay any attention to the fact that service account itself is also required to have proper roles in IAM.
Document AI error messages documentation was also very helpful in troubleshooting.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |