From e08e8d021f670df2d548f3f8cade5651c0555902 Mon Sep 17 00:00:00 2001 From: jlightner Date: Mon, 30 Mar 2026 02:37:37 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Creators=20page=20422=20=E2=80=94=20limi?= =?UTF-8?q?t=3D200=20exceeded=20API=20max=20of=20100,=20also=20fix=20error?= =?UTF-8?q?=20display=20for=20Pydantic=20validation=20arrays?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/public-client.ts | 3 ++- frontend/src/pages/CreatorsBrowse.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/public-client.ts b/frontend/src/api/public-client.ts index 1fa5d68..47ecdd0 100644 --- a/frontend/src/api/public-client.ts +++ b/frontend/src/api/public-client.ts @@ -176,7 +176,8 @@ async function request(url: string, init?: RequestInit): Promise { try { const body: unknown = await res.json(); if (typeof body === "object" && body !== null && "detail" in body) { - detail = String((body as { detail: unknown }).detail); + const d = (body as { detail: unknown }).detail; + detail = typeof d === "string" ? d : Array.isArray(d) ? d.map((e: any) => e.msg || JSON.stringify(e)).join("; ") : JSON.stringify(d); } } catch { // body not JSON — keep statusText diff --git a/frontend/src/pages/CreatorsBrowse.tsx b/frontend/src/pages/CreatorsBrowse.tsx index 0dc4d1c..9b3e37b 100644 --- a/frontend/src/pages/CreatorsBrowse.tsx +++ b/frontend/src/pages/CreatorsBrowse.tsx @@ -57,7 +57,7 @@ export default function CreatorsBrowse() { const res = await fetchCreators({ sort, genre: genreFilter ?? undefined, - limit: 200, + limit: 100, }); if (!cancelled) setCreators(res.items); } catch (err) {