From 93172f8a8621da8417169013a2679a30060b3bb3 Mon Sep 17 00:00:00 2001 From: Avinash Sajjanshetty Date: Sun, 1 Jun 2025 20:48:27 +0530 Subject: [PATCH] Use `/info` to probe if the server supports `sync` Instead of using `/sync/0/0/0` use info endpoint which is supported by the new server only, to identify the sync protocol URL --- libsql/src/database/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsql/src/database/builder.rs b/libsql/src/database/builder.rs index 3150648fa8..e368a65237 100644 --- a/libsql/src/database/builder.rs +++ b/libsql/src/database/builder.rs @@ -372,7 +372,7 @@ cfg_replication! { } else { url.to_string() }; - let req = http::Request::get(format!("{prefix}/sync/0/0/0")) + let req = http::Request::get(format!("{prefix}/info")) .header("Authorization", format!("Bearer {}", auth_token)) .body(hyper::Body::empty()) .unwrap();