majorbadass
majorbadass
RRailway
Created by majorbadass on 4/3/2024 in #✋|help
How to support both grpc and http for a railway service?
I'm trying to set up weaviate on railway. Since their migration to the v4 client, I cannot instantiate a python client. This seems to be because it requires both a grpc and an http host and port.
import weaviate
client = weaviate.connect_to_custom( http_host=, http_port=, http_secure=True, grpc_host=, grpc_port=, grpc_secure=True, )
import weaviate
client = weaviate.connect_to_custom( http_host=, http_port=, http_secure=True, grpc_host=, grpc_port=, grpc_secure=True, )
This times out. I've tried using a TCP proxy as per the advice here. https://www.answeroverflow.com/m/1178132082157961367 But it only exposes one host and port, so I can't figure out how to provide both http and grpc ports. Weaviate enforces that they be different.
4 replies