{"record":{"id":"c26669b4636668a9","repo":"different-ai/openwork","slug":"failed-to-delete-organization-response-status","errorCode":null,"errorMessage":"Failed to delete organization (${response.status}).","messagePattern":"Failed to delete organization \\((.+?)\\)\\.","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx","lineNumber":579,"sourceCode":"\n    if (shouldPublishOrgSettingsCompletion && pathnameRef.current === ORG_SETTINGS_PATH) {\n      publishOrgSettingsCompletion();\n    }\n  }\n\n  async function deleteOrganization() {\n    ensureCanDeleteOrganization();\n\n    await runReauthableAction(\"delete-organization\", async () => {\n      ensureActiveOrganizationSelected();\n      const { response, payload } = await requestJson(\n        \"/v1/org\",\n        { method: \"DELETE\" },\n        12000,\n      );\n\n      if (!response.ok) {\n        throw getRequestError(payload, response, `Failed to delete organization (${response.status}).`);\n      }\n    });\n  }\n\n  async function inviteMember(input: { email: string; role: string }) {\n    const access = getCurrentAccess();\n    if (!access.canInviteMembers) {\n      throw new Error(\"Only workspace admins can invite members.\");\n    }\n    const invitationRole = access.canManageRoles ? input.role : \"member\";\n    ensureRoleCanBeAssigned(invitationRole);\n\n    await runMutation(\"invite-member\", async () => {\n      ensureActiveOrganizationSelected();\n      const { response, payload } = await requestJson(\n        \"/v1/invitations\",\n        {\n          method: \"POST\",","sourceCodeStart":561,"sourceCodeEnd":597,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx#L561-L597","documentation":"Error \"Failed to delete organization (${response.status}).\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_providers/org-dashboard-provider.tsx:579 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}