Hi there,
Note I insert (endpoint ID) for where my endpoint ID and (project ID) for my project ID but yes I"m inserting it correctly.
Hi, I have spent half a day with germini trying to resolve this so I have gone over all the basic issues. I’ve deployed an endpoint which should be able to be called from my ai brain script. I’m getting erros about DNS. Durting testing it resolves
PS C:\WINDOWS\system32> nslookup (endpointID).us-central1-(proejct number).prediction.vertexai.goog
Server: dns.google
Address: 8.8.8.8
*** dns.google can’t find {project id}.us-central1-(proejct number).prediction.vertexai.goog: Non-existent domain when running from local powershell.
In google console cloud it confirms dedicated dns is enabled, however when I click the endpoint to view in gui it shows the box unticked, not sure if that is causing an issue. Note, I’ve deleted and recreated four models and everytime is the same.
Using endpoint [https://us-central1-aiplatform.googleapis.com/]
createTime: ‘2025-03-20T03:12:29.939673Z’
dedicatedEndpointDns: (endpoint ID).us-central1-(proejct number).prediction.vertexai.goog
dedicatedEndpointEnabled: true
deployedModels:
- createTime: ‘2025-03-20T03:12:29.939673Z’
disableContainerLogging: true
displayName: remai-primary-model-pro
enableAccessLogging: true
id: ‘2894087227631992832’
model: projects/(proejct number)/locations/us-central1/models/8636528596250263552
modelVersionId: ‘1’
displayName: remai-primary-model-endpoint1
etag: AMEw9yMlefh8eEVSrVzSFJ-8Kx7A4k3f9Ft15FHjbTNCflVB46PTcfh72nTtRJdqB8yE
name: projects/(proejct number)/locations/us-central1/endpoints/(endpoint ID)
trafficSplit:
‘2894087227631992832’: 100
updateTime: ‘2025-03-20T03:12:32.563405Z’
username@cloudshell:~ (remai-d3e17)$ ^
Finally, I’ve checked permissions and all are valid, I’ve actually over shared in permissions to make sure that is not the issue, however the error points to dns. I’ve also tried to run from public but get error as well.
username@cloudshell:~ (remai-d3e17)$ curl -X POST “[https://us-central1-aiplatform.googleapis.com/v1/projects/(proejct](https://us-central1-aiplatform.googleapis.com/v1/projects/(proejct) number)/locations/us-central1/endpoints/(project ID):predict”
-H “Authorization: Bearer $(gcloud auth print-access-token)”
-H “Content-Type: application/json”
-d ‘{
“instances”: [{“input_text”: “Hello, can you hear me?”}]
}’
{
“error”: {
“code”: 400,
“message”: “Dedicated Endpoint cannot be accessed through the shared Vertex AI domain aiplatform.googleapis.com. Please access the endpoint using its dedicated domain name ‘(project ID).us-central1-(proejct number).prediction.vertexai.goog’”,
“status”: “FAILED_PRECONDITION”
}
}
My script uses the dedicated endpoint URL, I did notice under API in modles registry it justt has ‘-’. I’m not sure if it should have API there, if so where can I access it, but geminin keeps telling me that the dedicated endpoint url is all I need. not that it matters, but this is the line in my script but I’ve also not been able to get it working testing either as you can see above.Please help asap this model is needing to be uploaded to test for a customer asap, if it works we can move our fleet to google cloud.
VERTEX_AI_ENDPOINT = “[https://us-central1-aiplatform.googleapis.com/v1/projects/(proejct](https://us-central1-aiplatform.googleapis.com/v1/projects/(proejct) number)/locations/us-central1/endpoints/(endpoint ID):predict”