Skip to content

Commit 52d527a

Browse files
committed
feat: Add warning log for unsupported Weaviate server versions
1 parent 93f2812 commit 52d527a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Weaviate.Client/WeaviateClient.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,17 @@ private async Task PerformInitializationAsync(ClientConfiguration config)
269269
Modules = metaDto?.Modules?.ToDictionary() ?? [],
270270
};
271271

272+
// Log warning if connecting to a server older than 1.31.0
273+
var minSupportedVersion = new Version(1, 31, 0);
274+
if (_metaCache.HasValue && _metaCache.Value.Version < minSupportedVersion)
275+
{
276+
_logger.LogWarning(
277+
"Connected to Weaviate server version {ServerVersion}, which is earlier than the minimum supported version {MinVersion}. Some features may not work as expected.",
278+
_metaCache.Value.Version,
279+
minSupportedVersion
280+
);
281+
}
282+
272283
var maxMessageSize = _metaCache?.GrpcMaxMessageSize;
273284

274285
// Create gRPC client with metadata

0 commit comments

Comments
 (0)