Skip to content

Commit 8ca1f21

Browse files
committed
fix: hostname: command not found
1 parent 4df7cb5 commit 8ca1f21

File tree

1 file changed

+6
-1
lines changed
  • packages/cubejs-server-core/core

1 file changed

+6
-1
lines changed

packages/cubejs-server-core/core/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ class CubejsServerCore {
9393
const client = new Analytics('dSR8JiNYIGKyQHKid9OaLYugXLao18hA', { flushInterval: 100 });
9494
const { machineIdSync } = require('node-machine-id');
9595
const { promisify } = require('util');
96-
const anonymousId = machineIdSync();
96+
let anonymousId = 'unknown';
97+
try {
98+
anonymousId = machineIdSync();
99+
} catch (e) {
100+
// console.error(e);
101+
}
97102
this.anonymousId = anonymousId;
98103
this.event = async (name, props) => {
99104
if (!options.telemetry) {

0 commit comments

Comments
 (0)