Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Updating vertex-ai endpoint labels using python

I'm getting this error while attempting to update a vertex-ai endpoint labels.

 

endpoint.update(labels=labels)

 

 

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.FAILED_PRECONDITION
	details = "Updating PrivateServiceConnectConfig is not supported."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:216.58.198.74:443 {created_time:"2024-02-20T15:42:20.8032049+00:00", grpc_status:9, grpc_message:"Updating PrivateServiceConnectConfig is not supported."}"
>

 

it was working before, but now it's not, I have tried 3 different versions of the aiplatform library, and all are giving me the same error.

please note that updating labels for model and dataset are working fine.

 

model.update(labels=labels)
dataset.update(labels=labels)

 

can you help me?

2 2 532
2 REPLIES 2

I'm having the exact same error when setting traffic on an endpoint. I wonder what's causing this

The error message you're encountering suggests that updating the labels for the Vertex AI endpoint is failing due to a "FAILED_PRECONDITION" status, specifically related to the "PrivateServiceConnectConfig." This typically indicates that the operation you're trying to perform is not supported or allowed under the current configuration.

Based on the error message, it seems that there might have been a recent change in the configuration or permissions related to PrivateServiceConnectConfig, which is preventing you from updating the endpoint labels.

Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  • Review Recent Changes: Determine if there have been any recent changes to your Google Cloud Platform (GCP) project, IAM roles, or service configurations that might be affecting the ability to update endpoint labels. This could include changes to networking configurations or permissions related to PrivateServiceConnectConfig.
  • Check Documentation and Release Notes: Review the documentation and release notes for Vertex AI and the aiplatform library to see if there have been any updates or changes that might be relevant to this issue. Pay attention to any changes related to endpoint labeling or PrivateServiceConnectConfig.
  • Verify Permissions: Ensure that the account or service account you're using to perform the update operation has the necessary permissions to modify endpoint labels and any related configurations. You may need to check IAM roles and policies to confirm that the appropriate permissions are granted.
  • Contact Support: If you're unable to resolve the issue through troubleshooting or if you suspect that it might be related to a platform-level change or bug, consider reaching out to Google Cloud Support for assistance. They can provide more specific guidance and help you troubleshoot the issue further.
  • Workaround: If updating labels directly is not currently possible due to the error, you might consider alternative approaches or workarounds, such as creating a new endpoint with the desired labels and redirecting traffic to it, if feasible.

By following these steps, you should be able to identify the cause of the issue and determine the appropriate course of action to resolve it.