different-ai/openwork · error · Error
Failed to delete organization (${response.status}).
Error message
Failed to delete organization (${response.status}). What it means
Error "Failed to delete organization (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:579
if (shouldPublishOrgSettingsCompletion && pathnameRef.current === ORG_SETTINGS_PATH) {
publishOrgSettingsCompletion();
}
}
async function deleteOrganization() {
ensureCanDeleteOrganization();
await runReauthableAction("delete-organization", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
"/v1/org",
{ method: "DELETE" },
12000,
);
if (!response.ok) {
throw getRequestError(payload, response, `Failed to delete organization (${response.status}).`);
}
});
}
async function inviteMember(input: { email: string; role: string }) {
const access = getCurrentAccess();
if (!access.canInviteMembers) {
throw new Error("Only workspace admins can invite members.");
}
const invitationRole = access.canManageRoles ? input.role : "member";
ensureRoleCanBeAssigned(invitationRole);
await runMutation("invite-member", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
"/v1/invitations",
{
method: "POST",View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:579 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01).
Data as JSON: /api/errors/c26669b4636668a9.
Report an issue: GitHub.