pymilvus
pymilvus copied to clipboard
[Bug]: hpack_parser.cc:833 when using an uri connection
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When I connect using a uri https://my-endpoint.ngrok-free.app:443
I get the following error:
E0912 19:44:03.761939000 11117801472 hpack_parser.cc:833] Error parsing 'content-type' metadata: error=invalid value key=content-type
[__internal_register] retry:4, cost: 0.27s, reason: <_InactiveRpcError: StatusCode.UNKNOWN, Stream removed>
Expected Behavior
To connect to Milvus like when I'm connecting in localhost.
Steps/Code To Reproduce behavior
Install the langchain library and use Milvus class.
from langchain.vectorstores import Milvus
Milvus(embedding_function=MyEmbeddingFunction(),
connection_args={"uri": `https://my-endpoint.ngrok-free.app:443`})
Environment details
- Hardware/Softward conditions (OS, CPU, GPU, Memory): MacOS Sonoma, Mac Mini 2021
- Method of installation (Docker, or from source): from Langchain
Anything else?
I've tried to trace the error and the code execution ends in pymilvus/client/grpc_handler.py
line 1837:
def __internal_register(self, user: str, host: str) -> int:
req = Prepare.register_request(user, host)
response = self._stub.Connect(request=req)
The library is working when connecting to a localhost connection.
The ngrok point is pointing to the 19530
port in the host machine.
@angel-luis I have been facing the same issue. Have you ever found the solution?
I don't remember exactly but I changed the method of using Milvus so I couldn't get a workaround about this issue.
Ah. I see. Thanks.