Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/core/src/connection/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export type ProxiesParams = {
};

export type TimeoutParams = {
/** Define the configured timeout when querying data from Weaviate */
/** Define the configured timeout, in seconds, when querying data from Weaviate */
query?: number;
/** Define the configured timeout when mutating data to Weaviate */
/** Define the configured timeout, in seconds, when mutating data to Weaviate */
insert?: number;
/** Define the configured timeout when initially connecting to Weaviate */
/** Define the configured timeout, in seconds, when initially connecting to Weaviate */
init?: number;
};

Expand Down Expand Up @@ -246,7 +246,7 @@ const fetchWithTimeout = (
return fetch(input, { ...init, signal: controller.signal })
.catch((error) => {
if (isAbortError(error)) {
throw new WeaviateRequestTimeoutError(`Request timed out after ${timeout}ms`);
throw new WeaviateRequestTimeoutError(`Request timed out after ${timeout * 1000}ms`);
}
throw error; // For other errors, rethrow them
})
Expand Down
Loading