diff --git a/src/api/httpClientAdapter.server.ts b/src/api/httpClientAdapter.server.ts index 2453acd..cfbc77c 100644 --- a/src/api/httpClientAdapter.server.ts +++ b/src/api/httpClientAdapter.server.ts @@ -47,6 +47,7 @@ export function httpClientAdapter(opts: { } else { res = await fetch(req); } + if (!res.ok) { // throw new Error(`HTTP error: ${res.status}`); throw new Error( @@ -59,6 +60,9 @@ export function httpClientAdapter(opts: { ); // throw TinyRpcError.deserialize(res.status); } + // if (res.headers.get("set-cookie")) { + // console.log("Response has set-cookie header:", res.headers.get("set-cookie")); + // } const result: Result = JSON.parse( await res.text() ); diff --git a/src/components/DashboardLayout.vue b/src/components/DashboardLayout.vue index fb77edc..3da885f 100644 --- a/src/components/DashboardLayout.vue +++ b/src/components/DashboardLayout.vue @@ -1,14 +1,14 @@