From f346a73b613524bb6f2b06f2e590124d0b1a4d89 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 30 Nov 2025 02:31:37 -0800 Subject: [PATCH] fix: handle 204 No Content responses in base adapter --- src/lib/api/adapters/base.adapter.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/api/adapters/base.adapter.ts b/src/lib/api/adapters/base.adapter.ts index 248f2d27..5417af84 100644 --- a/src/lib/api/adapters/base.adapter.ts +++ b/src/lib/api/adapters/base.adapter.ts @@ -171,6 +171,11 @@ export abstract class BaseAdapter { // Make the request with retry logic (errors handled inside fetchWithRetry) const response = await this.fetchWithRetry(url, fetchOptions, options.retries) + // Handle 204 No Content responses (e.g., DELETE operations) + if (response.status === 204) { + return undefined as T + } + // Parse and transform the response const data = await response.json()