Add response to nitrate request when nitrate is down (#8722)

This commit is contained in:
Pablo Alba
2026-03-26 17:25:07 +01:00
committed by GitHub
parent 1af2521f64
commit 4b4b99a949

View File

@@ -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