Skip to content

Commit

Permalink
Added grpc as a valid protocol for uri (#2090)
Browse files Browse the repository at this point in the history
Added grpc protocol to connection uri validation. Not having it was
preventing grpc connections with the following error:
<ConnectionConfigException: (code=1, message=Open local milvus failed,
dir: grpc: is not exists)>

---------

Signed-off-by: Bruno Faria <[email protected]>
Signed-off-by: Bruno Faria <[email protected]>
Co-authored-by: Bruno Faria <[email protected]>
  • Loading branch information
brunocfnba and Bruno Faria authored May 17, 2024
1 parent fa67aa0 commit 473f62f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymilvus/orm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ def connect(
"http",
"https",
"tcp",
"grpc",
]:
# start and connect milvuslite
if kwargs["uri"].endswith("/"):
Expand Down

0 comments on commit 473f62f

Please sign in to comment.