Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

Local Python app connecting to Weaviate client 4.0 within Kubernetes

$
0
0

Good morning, I hope you can maybe assist me witht he following issue.

I have a kubernetes cluster with weaviate running on it as setup as per the documentation on the site using minikube.

I can see that it’s running when I minikube tunnel as I’m able to view it in the browser on 127.0.0.1:80

I’m also able to curl that location that returns a successful status of 200.

My issue is when I try and connect from our python application on my local machine to the local kubernetes cluster it’s not able to connect to weaviate even though above mentioned it worked.

My client is as follows (Note i’ve tried on both port 8080 and 80)

client = weaviate.connect_to_custom(
            http_host="localhost",
            http_port="8080", or 80
            http_secure=False,
            grpc_host="localhost",
            grpc_port="50051",
            grpc_secure=False,
        )

So when I try and run it locally the following error occurs

{"errorMessage": "An error occurred while processing the file: Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.", "errorType": "RuntimeError", "requestId": "82da9ab1-06c3-4e19-beb9-62efb0e72205"

Any insight into this matter would be greatly appreciated


Viewing all articles
Browse latest Browse all 3588

Trending Articles