From 4b4b99a9492b196bcd1deca121a8209fa2bd0a3c Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 26 Mar 2026 17:25:07 +0100 Subject: [PATCH] :sparkles: Add response to nitrate request when nitrate is down (#8722) --- backend/src/app/nitrate.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/app/nitrate.clj b/backend/src/app/nitrate.clj index 000a55953c..4d7aa5c230 100644 --- a/backend/src/app/nitrate.clj +++ b/backend/src/app/nitrate.clj @@ -51,6 +51,11 @@ (fn [] (let [response (handler) status (:status response)] + (when-not status + (l/error :hint "could't do the nitrate request, it is probably down" + :uri uri) + ;; TODO decide what to do when Nitrate is inaccesible + nil) (if (>= status 400) ;; For error status codes (4xx, 5xx), fail immediately without validation (do