From 2195b8932e6ea111f8d7d103f93c148d6e863753 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 4 May 2021 20:21:23 +0200 Subject: [PATCH] :bug: Fix status code checking on telemetry client task. --- backend/src/app/tasks/telemetry.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/app/tasks/telemetry.clj b/backend/src/app/tasks/telemetry.clj index 564021c3e..44a232aeb 100644 --- a/backend/src/app/tasks/telemetry.clj +++ b/backend/src/app/tasks/telemetry.clj @@ -60,10 +60,9 @@ :uri (:uri cfg) :headers {"content-type" "application/json"} :body (json/encode-str data)})] - - (when (not= 200 (:status response)) + (when (> (:status response) 206) (ex/raise :type :internal - :code :invalid-response-from-google + :code :invalid-response :context {:status (:status response) :body (:body response)}))))