From be57d581ac6df59a184ed74e5159a7359b617cba Mon Sep 17 00:00:00 2001 From: billisdead Date: Thu, 21 May 2026 23:32:36 +0200 Subject: [PATCH] debug: log POST body and full 400 response in compose Co-Authored-By: Claude Sonnet 4.6 --- artifacts/postiz-mobile/app/(tabs)/compose.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artifacts/postiz-mobile/app/(tabs)/compose.tsx b/artifacts/postiz-mobile/app/(tabs)/compose.tsx index 9c430e9..76c2a57 100644 --- a/artifacts/postiz-mobile/app/(tabs)/compose.tsx +++ b/artifacts/postiz-mobile/app/(tabs)/compose.tsx @@ -155,6 +155,7 @@ export default function ComposeScreen() { }), }; const body = JSON.stringify(payload); + console.log("[compose] POST", `${baseUrl}/posts`, body); // eslint-disable-next-line no-undef const res = await globalThis.fetch(`${baseUrl}/posts`, { @@ -170,7 +171,8 @@ export default function ComposeScreen() { let detail = ""; try { const raw = await res.text(); - detail = raw.slice(0, 300); + console.log("[compose] 400 body:", raw); + detail = raw.slice(0, 500); } catch { detail = res.statusText; }