Fix IDAA Recovery Meetings loading and optimize API retry logic
- Implemented workaround for 'conference' field search restriction in V3 by using local filtering - Optimized post_object to stop retrying on 4xx client errors (400, 401, 403) - Migrated Archives and Event/Recovery Meeting modules to Aether API CRUD V3 - Added editable_fields definitions for Archive and Archive Content objects
This commit is contained in:
@@ -127,6 +127,12 @@ export const post_object = async function post_object({
|
||||
|
||||
const errorBody = await response.text();
|
||||
console.error(`HTTP error! status: ${response.status}`, errorBody);
|
||||
|
||||
// Don't retry on client errors (400, 401, 403)
|
||||
if (response.status >= 400 && response.status < 404) {
|
||||
return false;
|
||||
}
|
||||
|
||||
throw new Error(`HTTP error! status: ${response.status} - ${errorBody}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user