Hello.
I have 2 questions regarding the weaviate-cli (GitHub - weaviate/weaviate-cli: CLI tool for Weaviate).
I recently installed the newly released version 3.0.1 and tried to test it.
I created a ~/.config/weaviate/config.json file in the following format as instructed:
{
“host”: “your-weaviate-host”,
“http_port”: “your-http-port”,
“grpc_port”: “your-grpc-port”,
“auth”: {
“type”: “api_key”,
“api_key”: “your-api-key”
}
}
However, when I specify the host as ‘localhost’, the commands work normally.
$ weaviate-cli get collection
Collection Multitenancy Tenants Objects ReplicationFactor VectorIndex Vectorizer
Movies False 0 1000 3 hnsw none
Questoin 1.
But when I specify the host as the server’s hostname or IP, I get the following error:
Error: Could not connect to Weaviate: Connection to Weaviate failed. Details: .
I have confirmed that I can access the target port normally using the hostname and IP.
What could be the problem?
Questoin 2.
how do I set the IP of http_port and grpc_port in different environments?