Migrate applications from Nature Language AutoML into Vertex AI

Hi,
I’m new to GCP and currently facing what seems to be permissions related issues when trying to fire requests using below
https://${{LOCATION}}-aiplatform.googleapis.com/ui/projects/${{PROJECT_ID}}/locations/${{LOCATION}}/endpoints/${{ENDPOINT_ID}}}:predict

Error message:

{
“error”: {
“code”: 403,
“message”: “Permission denied on resource project $[SomeProjectID].”,
“status”: “PERMISSION_DENIED”,
“details”: [
{
@type”: “type.googleapis.com/google.rpc.Help”,
“links”: [
{
“description”: “Google developers console”,
“url”: “https://console.developers.google.com
}
]
},
{
@type”: “type.googleapis.com/google.rpc.ErrorInfo”,
“reason”: “CONSUMER_INVALID”

Please verify the region endpoint used and the project id that used is correct, usually these are the troubleshooting step for these kinds of error. Otherwise, please review this article for troubleshooting this error code. https://cloud.google.com/vertex-ai/docs/general/troubleshooting#:~:text=exceptions.,t%20have%20the%20required%20permission.

1 Like