different-ai/openwork · error · Error
Failed to cancel invitation (${response.status}).
Error message
Failed to cancel invitation (${response.status}). What it means
Error "Failed to cancel invitation (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:669
setMutationBusy(null);
}
}
async function cancelInvitation(invitationId: string) {
if (!getCurrentAccess().canCancelInvitations) {
throw new Error("Only workspace admins can cancel invitations.");
}
await runMutation("cancel-invitation", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
`/v1/invitations/${encodeURIComponent(invitationId)}/cancel`,
{ method: "POST", body: JSON.stringify({}) },
12000,
);
if (!response.ok) {
throw getRequestError(payload, response, `Failed to cancel invitation (${response.status}).`);
}
});
}
async function updateMemberRole(memberId: string, role: string) {
if (!getCurrentAccess().canManageRoles) {
throw new Error("Only workspace owners and super-admins can change member roles.");
}
ensureTargetIsNotOwner(memberId);
ensureRoleCanBeAssigned(role);
await runMutation("update-member-role", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
`/v1/members/${encodeURIComponent(memberId)}/role`,
{
method: "POST",
body: JSON.stringify({ role }),View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:669 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/3cf673c4f083c4b1.
Report an issue: GitHub.