You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
When trying to run a query, we check if the weaviate async client is connected.
When the client returns that it is connected, we run our queries.
However, sometimes, the client.connect() returns before it is fully connected (grpc_stub is None).
More specifically:
awaitclient.connect() # This is not waiting until client is fully connected (grpc_stub)
After a few second, the grpc_stub is set and the code begins to work normally, but the first calls result in an error being raised because the client._connection.grpc_stub is None.
Where the error happened when trying to use the client:
File \"/usr/local/lib/python3.11/site-packages/weaviate/collections/grpc/query.py\", line 803, in __call
assert self._connection.grpc_stub is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Language: Python
Version: weaviate-client 4.9.6
Context:
When trying to run a query, we check if the weaviate async client is connected.
When the client returns that it is connected, we run our queries.
However, sometimes, the client.connect() returns before it is fully connected (grpc_stub is None).
More specifically:
After a few second, the grpc_stub is set and the code begins to work normally, but the first calls result in an error being raised because the client._connection.grpc_stub is None.
Client initialization:
Connecting
Where the error happened when trying to use the client:
What we had to do to fix:
So, we expect a fix on the await client.connect() to wait for the client to be fully connected
The text was updated successfully, but these errors were encountered: