Skip to content

Commit 97270fb

Browse files
committed
Fix WCD connection changes
1 parent e8f02ca commit 97270fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/connection/helpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function connectToWeaviateCloud(
8686
grpcHost = `grpc-${url.hostname}`;
8787
}
8888

89-
const { headers, ...rest } = options || {};
89+
const { authCredentials, headers, ...rest } = options || {};
9090

9191
return clientMaker({
9292
connectionParams: {
@@ -101,7 +101,8 @@ export function connectToWeaviateCloud(
101101
port: 443,
102102
},
103103
},
104-
headers: addWeaviateEmbeddingServiceHeaders(clusterURL, options?.authCredentials, headers),
104+
auth: authCredentials,
105+
headers: addWeaviateEmbeddingServiceHeaders(clusterURL, authCredentials, headers),
105106
...rest,
106107
}).catch((e) => {
107108
throw new WeaviateStartUpError(`Weaviate failed to startup with message: ${e.message}`);

0 commit comments

Comments
 (0)