different-ai/openwork · error · Error
Failed to update role (${response.status}).
Error message
Failed to update role (${response.status}). What it means
Error "Failed to update role (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:848
throw new Error("Only workspace owners and super-admins can manage roles.");
}
if (typeof input.roleName === "string") {
ensureRoleCanBeAssigned(input.roleName);
}
await runMutation("update-role", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
`/v1/roles/${encodeURIComponent(roleId)}`,
{
method: "PATCH",
body: JSON.stringify(input),
},
12000,
);
if (!response.ok) {
throw getRequestError(payload, response, `Failed to update role (${response.status}).`);
}
});
}
async function deleteRole(roleId: string) {
if (!getCurrentAccess().canManageRoles) {
throw new Error("Only workspace owners and super-admins can manage roles.");
}
await runMutation("delete-role", async () => {
ensureActiveOrganizationSelected();
const { response, payload } = await requestJson(
`/v1/roles/${encodeURIComponent(roleId)}`,
{ method: "DELETE" },
12000,
);
if (response.status !== 204 && !response.ok) {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:848 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/bbf3fe6bd8c3a8c3.
Report an issue: GitHub.