We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b59a6 commit e821aa1Copy full SHA for e821aa1
templates/cli/lib/commands/generic.js.twig
@@ -80,13 +80,16 @@ const client = new Command("client")
80
if (url.protocol !== "http:" && url.protocol !== "https:") {
81
throw new Error();
82
}
83
-
+
84
let client = new Client().setEndpoint(endpoint);
85
+ if (selfSigned || globalConfig.getSelfSigned()) {
86
+ client.setSelfSigned(true);
87
+ }
88
let response = await client.call('GET', '/health/version');
- if(!response.version) {
89
+ if (!response.version) {
90
91
92
93
globalConfig.setEndpoint(endpoint);
94
} catch (_) {
95
throw new Error("Invalid endpoint or your Appwrite server is not running as expected.");
0 commit comments