From a614207f7e8febb0a6ddcabf8900172a833f0416 Mon Sep 17 00:00:00 2001 From: Aitor Moreno Date: Tue, 9 Dec 2025 12:26:05 +0100 Subject: [PATCH] :bug: Fix exporter failing with HTTPS --- exporter/scripts/wait-and-start.sh | 1 + exporter/src/app/browser.cljs | 2 +- exporter/src/app/handlers/export_shapes.cljs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exporter/scripts/wait-and-start.sh b/exporter/scripts/wait-and-start.sh index f9638eb06d..c3848228dc 100755 --- a/exporter/scripts/wait-and-start.sh +++ b/exporter/scripts/wait-and-start.sh @@ -7,4 +7,5 @@ bb -i '(babashka.wait/wait-for-port "localhost" 9630)'; bb -i '(babashka.wait/wait-for-path "target/app.js")'; sleep 2; +export NODE_TLS_REJECT_UNAUTHORIZED=0 exec node target/app.js diff --git a/exporter/src/app/browser.cljs b/exporter/src/app/browser.cljs index 816fb1c954..526ae77380 100644 --- a/exporter/src/app/browser.cljs +++ b/exporter/src/app/browser.cljs @@ -100,7 +100,7 @@ (def browser-pool-factory (letfn [(create [] - (p/let [opts #js {:args #js ["--font-render-hinting=none"]} + (p/let [opts #js {:args #js ["--allow-insecure-localhost" "--font-render-hinting=none"]} browser (.launch pw/chromium opts) id (swap! pool-browser-id inc)] (l/info :origin "factory" :action "create" :browser-id id) diff --git a/exporter/src/app/handlers/export_shapes.cljs b/exporter/src/app/handlers/export_shapes.cljs index c254aba5b5..82f1d78855 100644 --- a/exporter/src/app/handlers/export_shapes.cljs +++ b/exporter/src/app/handlers/export_shapes.cljs @@ -74,7 +74,7 @@ (p/fmap (fn [resource] (assoc exchange :response/body resource))) (p/merr (fn [cause] - (l/error :hint "unexpected error on export multiple" + (l/error :hint "unexpected error on single export" :cause cause) (p/rejected cause)))))) @@ -94,7 +94,7 @@ (redis/pub! topic data)))) on-error (fn [cause] - (l/error :hint "unexpected error on multiple exportation" :cause cause) + (l/error :hint "unexpected error on multiple export" :cause cause) (if wait (p/rejected cause) (redis/pub! topic {:type :export-update