Skip to content

Commit 584f0e9

Browse files
authored
fix: handle failed telemetry dns resolutions (#2584)
1 parent c60728e commit 584f0e9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

package-lock.json

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-connect/src/stores/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,12 @@ const Store = Reflux.createStore({
983983
hostname,
984984
authMechanism,
985985
} = this.state.connectionModel;
986-
const { isAws, isAzure, isGcp } = await getCloudInfo(hostname);
986+
const { isAws, isAzure, isGcp } = await getCloudInfo(hostname)
987+
.catch((err) => {
988+
debug('getCloudInfo failed', err);
989+
return {};
990+
});
991+
987992
const isPublicCloud = isAws || isAzure || isGcp;
988993
const publicCloudName = isAws ? 'AWS' : isAzure ? 'Azure' : isGcp ? 'GCP' : '';
989994

@@ -1042,7 +1047,9 @@ const Store = Reflux.createStore({
10421047
// in another plugin.
10431048
this.StatusActions.showIndeterminateProgressBar();
10441049

1045-
void this._trackConnectionInfo();
1050+
void this._trackConnectionInfo().catch((err) => {
1051+
debug('_trackConnectionInfo failed', err);
1052+
});
10461053
},
10471054

10481055
/**

0 commit comments

Comments
 (0)