From 20038cdd8007453b72693fcf392908021817503d Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Fri, 13 Oct 2023 04:24:10 -0700 Subject: [PATCH] Start Flipper HTTP server even if app server fails to start Summary: **Issue** From passy: when one of the app server ports is occupied, Flipper PWA is stuck at the loading screen Reviewed By: passy Differential Revision: D50261985 fbshipit-source-id: 8ce90cd6d515c26a824645f642dacbe92e7f4105 --- desktop/flipper-server/src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/flipper-server/src/index.tsx b/desktop/flipper-server/src/index.tsx index 48ced3371a8..cd21ee19270 100644 --- a/desktop/flipper-server/src/index.tsx +++ b/desktop/flipper-server/src/index.tsx @@ -243,7 +243,9 @@ async function start() { } }); } - await flipperServer.connect(); + await flipperServer + .connect() + .catch((e) => console.warn('Flipper Server failed to initialize', e)); const t8 = performance.now(); const appServerStartedMS = t8 - t7;