From e71ac3a5a8d192647042b481a10f990aabf7d416 Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Mon, 18 May 2026 14:49:53 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20selfmeasure=20=E2=80=94=20=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D0=BC=D0=BE=D0=B5=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=20HTTP=204x?= =?UTF-8?q?x/5xx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- miniapp/assets/selfmeasure.js | 1 + 1 file changed, 1 insertion(+) diff --git a/miniapp/assets/selfmeasure.js b/miniapp/assets/selfmeasure.js index 999640c..11ba3b5 100644 --- a/miniapp/assets/selfmeasure.js +++ b/miniapp/assets/selfmeasure.js @@ -20,6 +20,7 @@ const SelfMeasureScreen = (function () { headers: { "Content-Type": "application/json" }, body: JSON.stringify({ initData: tg?.initData || "", initDataUnsafe: tg?.initDataUnsafe || null, ...body }), }); + if (!res.ok) throw new Error(`Ошибка сервера (${res.status})`); return await res.json(); } catch (e) { if (e.name === "AbortError") throw new Error("Сервер не отвечает");