From 516940f713a9c088abafc4dae1fe5791db4985be Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Thu, 8 Jan 2026 23:28:07 +0800 Subject: [PATCH] fix(sdk/js): isReachable not works for dstack v0.5.x --- sdk/js/src/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/js/src/index.ts b/sdk/js/src/index.ts index 6e8e32063..e66e26608 100644 --- a/sdk/js/src/index.ts +++ b/sdk/js/src/index.ts @@ -253,7 +253,7 @@ export class DstackClient { async isReachable(): Promise { try { // Use info endpoint to test connectivity with 500ms timeout - await send_rpc_request(this.endpoint, '/prpc/Tappd.Info', '{}', 500) + await send_rpc_request(this.endpoint, '/Info', '{}', 500) return true } catch (error) { return false @@ -438,4 +438,14 @@ export class TappdClient extends DstackClient { }) return Object.freeze(result) } + + async isReachable(): Promise { + try { + // Use info endpoint to test connectivity with 500ms timeout + await send_rpc_request(this.endpoint, '/prpc/Tappd.Info', '{}', 500) + return true + } catch (error) { + return false + } + } }