Kong/insomnia · error · Error

Failed to revoke invitation from organization

Error message

Failed to revoke invitation from organization

What it means

Sentinel error from revokeOrganizationInvite: the revokeInvitation backend call threw while canceling a pending organization invitation. If the original error is an Error its message propagates; otherwise this generic fallback message is thrown.

Solutions

  1. Verify the invitation still exists and has not already been accepted or revoked
  2. Ensure the current user has admin rights to manage organization invites
  3. Retry after checking network/session validity
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx:729 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/55b49fb5829ea38a. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx:729

    return await unlinkCollaborator({
      organizationId,
      collaboratorId,
      sessionId: await getCurrentSessionId(),
    });
  } catch (error) {
    throw new Error(error ?? 'Failed to unlink team from organization');
  }
}

async function revokeOrganizationInvite(organizationId: string, invitationId: string) {
  try {
    return revokeInvitation({
      organizationId,
      invitationId,
      sessionId: await getCurrentSessionId(),
    });
  } catch (error) {
    throw new Error(error instanceof Error ? error.message : 'Failed to revoke invitation from organization');
  }
}

View on GitHub (pinned to d9bb2b0142)