Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Handle unroutable token checks (#67698)

dpsutton476f61760c3e
diff --git a/src/metabase/premium_features/token_check.clj b/src/metabase/premium_features/token_check.clj
index 6b9bdeadc9b..cb5f1b07cab 100644
--- a/src/metabase/premium_features/token_check.clj
+++ b/src/metabase/premium_features/token_check.clj
@@ -161,7 +161,11 @@
(http/get {:query-params (merge (stats-for-token-request)
{:site-uuid site-uuid
:mb-version (:tag config/mb-version-info)})
- :throw-exceptions false})))
+ :throw-exceptions false
+ ;; socket is data transfer, connection is handshake and create connection timeout
+ :socket-timeout 5000 ;; in milliseconds
+ :connection-timeout 2000 ;; in milliseconds
+ })))
(defn- fetch-token-and-parse-body
[token base-url site-uuid]