googleapis / googleapis/google-cloud-ruby

[Vector Search] Can not access to PublicEndpoint by MatchService.

Open
#23,535 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1.4k
Forks
578
Avg merge
1d 11h
Merged PRs (30d)
166

Description

#### Environment details
* Ruby version: 3.2.2
* Rails version: 7.1.1
* Gem name and version: google-cloud-ai_platform-v1 (0.33.0)

### Steps to reproduce

1. Create index at Vector Search
2. Create index endpoint
3. Deploy index to index endpoint with public
4. Get public endpoint uri like ( `1111111111.asia-east1-833661946063.vdb.vertexai.goog` )
5. Access service to use Google::Cloud::AIPlatform::V1::MatchService::Client class
- `config.endpoint` : `1111111111.asia-east1-833661946063.vdb.vertexai.goog`
6. Use method `find_neighbors`
- `deployed_index_id`, `index_endpoint`, `queries`
7. `Google::Cloud::UnknownError (2:Stream removed. debug_error_string:{UNKNOWN:Error received from peer {grpc_message:"Stream removed", grpc_status:2, created_time:"2023-11-10T03:11:25.970084135+00:00"}}):`

### comment

I can find Deployed Index parameter is `public_access_enabled: false`.

But I create index by cURL command below.

```rb
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://us-central1-aiplatform.googleapis.com/v1/projects/my-own-project-id/locations/us-central1/indexEndpoints" \
-d '{"display_name": "public-endpoint-name", "publicEndpointEnabled": true}' # it's true!
```

So it was created, but public_endpoint_enabled is false...

IndexEndpointService::Client got below.
![image](https://github.com/googleapis/google-cloud-ruby/assets/3102940/9e082af3-5a0d-4e1e-b913-9caaf4aa5edb)

A request was succeed by Postman to use gRPC request.

Do you know how to use public endpoint by gRPC access?

### Tries

- ✅ REST request by cURL
- ✅ gRPC request by Postman
- ❌ gRPC request by google-cloud-ai_platform-v1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.