Description
Hi I am trying to upgrade to the V4 client to communicate with my weaviate instance. My weaviate instance has an architecture built within AWS, at a high level, of API Gateway → EKS. With the V3 client we can connect just fine with
client = weaviate.Client(
url="https://{DOMAIN_NAME_HERE}",
timeout_config=(30, 600)
)
However when I try the V4 client
client = weaviate.connect_to_custom(
http_host="{SAME_DOMAIN_NAME}",
http_port=443,
http_secure=True,
grpc_host="localhost",
grpc_port=50051,
grpc_secure=False,
)
I get an error
Weaviate v1.28.0 makes use of a high-speed gRPC API as well as a REST API.
Unfortunately, the gRPC health check against Weaviate could not be completed.This error could be due to one of several reasons:
- The gRPC traffic at the specified port is blocked by a firewall.
- gRPC is not enabled or incorrectly configured on the server or the client.
- Please check that the server address and port (localhost:50051) are correct.
- your connection is unstable or has a high latency. In this case you can:
- increase init-timeout in
weaviate.connect_to_local(additional_config=wvc.init.AdditionalConfig(timeout=wvc.init.Timeout(init=X)))
- disable startup checks by connecting using
skip_init_checks=True
Server Setup Information
- Weaviate Server Version: 1.28.0
- Deployment Method: APIG → EKS via CDK
- Multi Node? Number of Running Nodes: 1
- Client Language and Version: Python migrating from V3 to V4
- Multitenancy?: Yes
Any additional Information
Just calling out we have a custom setup, are the grpc fields required? I am not sure I can set these up via API Gateway