From 5d153ae57cf50ce85c15ccea02e53d1a7afdf08b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Ferna=CC=81ndez=20Haro?= Date: Fri, 21 Aug 2020 11:37:51 +0100 Subject: [PATCH] [Telemetry] Swallow errors in opt-in remote notification from the server --- src/plugins/telemetry/server/routes/telemetry_opt_in.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/telemetry/server/routes/telemetry_opt_in.ts b/src/plugins/telemetry/server/routes/telemetry_opt_in.ts index 7dd15f73029e7..1d07856b4143c 100644 --- a/src/plugins/telemetry/server/routes/telemetry_opt_in.ts +++ b/src/plugins/telemetry/server/routes/telemetry_opt_in.ts @@ -95,11 +95,13 @@ export function registerTelemetryOptInRoutes({ if (config.sendUsageFrom === 'server') { const optInStatusUrl = config.optInStatusUrl; - await sendTelemetryOptInStatus( + sendTelemetryOptInStatus( telemetryCollectionManager, { optInStatusUrl, newOptInStatus }, statsGetterConfig - ); + ).catch(() => { + // Swallow this error. The server is likely behind a firewall and can't reach the remote service + }); } await updateTelemetrySavedObject(context.core.savedObjects.client, attributes);