diff --git a/server/api/externalapi.ts b/server/api/externalapi.ts index 103558000..2788db1e1 100644 --- a/server/api/externalapi.ts +++ b/server/api/externalapi.ts @@ -178,6 +178,7 @@ class ExternalAPI { ): Promise { const url = this.formatUrl(endpoint, params); const response = await this.fetch(url, { + method: 'DELETE', ...config, headers: { ...this.defaultHeaders, @@ -313,7 +314,11 @@ class ExternalAPI { try { return await response.json(); } catch { - return await response.blob(); + try { + return await response.blob(); + } catch { + return null; + } } } }