backend-manager 5.0.60 → 5.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -159,7 +159,8 @@ class SetupCommand extends BaseCommand {
|
|
|
159
159
|
|
|
160
160
|
async fetchStats() {
|
|
161
161
|
const self = this.main;
|
|
162
|
-
const
|
|
162
|
+
const url = `${self.apiUrl}/backend-manager/admin/stats`;
|
|
163
|
+
const statsFetchResult = await fetch(url, {
|
|
163
164
|
method: 'GET',
|
|
164
165
|
timeout: 30000,
|
|
165
166
|
response: 'json',
|
|
@@ -172,7 +173,7 @@ class SetupCommand extends BaseCommand {
|
|
|
172
173
|
|
|
173
174
|
if (statsFetchResult instanceof Error) {
|
|
174
175
|
if (!statsFetchResult.message.includes('network timeout')) {
|
|
175
|
-
this.logWarning(`Ran into error while fetching stats endpoint`, statsFetchResult);
|
|
176
|
+
this.logWarning(`Ran into error while fetching stats endpoint (${url})`, statsFetchResult);
|
|
176
177
|
}
|
|
177
178
|
} else {
|
|
178
179
|
this.logSuccess(`Stats fetched/created properly.`);
|