fix: handle 204 No Content responses in base adapter
This commit is contained in:
parent
2275daec61
commit
f346a73b61
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue