sickn33/agentic-awesome-skills · error · ApiError
Request failed
Error message
Request failed
What it means
Error "Request failed" thrown in sickn33/agentic-awesome-skills.
Source
Thrown at skills/frontend-api-integration-patterns/SKILL.md:72
this.name = "ApiError";
this.status = status;
this.payload = payload;
}
}
export const apiClient = async (url, options = {}) => {
const res = await fetch(url, {
headers: { "Content-Type": "application/json" },
...options,
});
if (!res.ok) {
let payload = null;
try {
payload = await res.json();
} catch (_) {}
throw new ApiError(
payload?.message || "Request failed",
res.status,
payload
);
}
// handle empty responses safely (e.g. 204 No Content)
if (res.status === 204) return null;
const text = await res.text();
return text ? JSON.parse(text) : null;
};
```
---
### 2. Race-Safe State Management
View on GitHub (pinned to 58d857988f)
When it happens
Trigger: Thrown at skills/frontend-api-integration-patterns/SKILL.md:72 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sickn33/agentic-awesome-skills@58d857988f (2026-08-26).
Data as JSON: /api/errors/e2cbb015e7266123.
Report an issue: GitHub.