-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
In versions 3.0.0-beta.23 and 3.0.0-rc.0 the setting for port in the rest settings seems to be ignored.
If I set the host to http://localhost
and port to 8080
I get an error message as soon as I try to interact with the API, e.g. this.client.collection.exists('MyClass')
ERROR error getting User: TypeError: fetch failed
ERROR TypeError: fetch failed
because the client seems to try and establish a connection at http://localhost:80.
When setting host to http://localhost:8080
everything works fine regardless of which port I specify in the port option.
Here is my code:
this.client = await weaviate.client({
rest: {
host: process.env.WEAVIATE_HOSTNAME_REST!,
port: 8080,
secure: isOnServer() ? true : false,
},
grpc: {
host: process.env.WEAVIATE_HOSTNAME_GRPC!,
port: 50051,
secure: isOnServer() ? true : false,
},
auth: {
apiKey: process.env.WEAVIATE_API_KEY!,
},
});
For grpc the host and port settings are used as expected.
dudanogueira
Metadata
Metadata
Assignees
Labels
No labels