From f1870ba9e45044e9f2f5119a87a95fca2e7e3024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blaisot?= Date: Thu, 24 Nov 2022 18:31:35 +0100 Subject: [PATCH] Fix: force cozy-client-js stack version --- packages/cozy-konnector-libs/src/libs/cozyclient.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cozy-konnector-libs/src/libs/cozyclient.js b/packages/cozy-konnector-libs/src/libs/cozyclient.js index 75fe6b302..eb37995de 100644 --- a/packages/cozy-konnector-libs/src/libs/cozyclient.js +++ b/packages/cozy-konnector-libs/src/libs/cozyclient.js @@ -60,7 +60,11 @@ const cozyClient = getCozyClient( ) function cozyClientJsFromEnv(cozyURL) { - const options = { cozyURL } + // version is hardcoded to 3 here to avoid fetching instance's /status looking for obsolete nodezy + const options = { + cozyURL, + version: 3 + } let jsonCredentials = null if (process.env.COZY_CREDENTIALS) { try {