Description
for some reason every time I run my Python server I run into this error a retry solves the problem 80% of the time but this still breaks and causes errors
I have tried using the manual connection of weaviate but ran into too many problems and went back to the normal client connection
Server Setup Information
this is my get client
def get_client():
max_retries = 7
retry_delay_seconds = 2
for attempt in range(1, max_retries + 1):
try:
client = weaviate.connect_to_wcs(
cluster_url=WCS_CLUSTER_URL,
auth_credentials=weaviate.auth.AuthApiKey(WCS_API_KEY),
headers={“X-OpenAI-Api-Key”: OPENAI_APIKEY}
)
return client
except Exception as e:
# to see the error that get_client is giving unfortunately weaviate is broken
print(f"Attempt {attempt} failed with error: {str(e)}“)
if attempt < max_retries:
print(f"Retrying in {retry_delay_seconds} seconds…”)
time.sleep(retry_delay_seconds)
return {"error": "Failed to connect after multiple attempts."}
the error
gRPC is not available. Please make sure that gRPC is configured correctly in the client and on the server: Weaviate v1.23.10
- Weaviate Server Version: Weaviate v1.23.10
- Deployment Method: running on was but this is done locally as the same error happens on both was and local
- Multi Node? Number of Running Nodes:
- Client Language and Version: python 3.10.11