{"record":{"id":"55b49fb5829ea38a","repo":"Kong/insomnia","slug":"failed-to-revoke-invitation-from-organization","errorCode":null,"errorMessage":"Failed to revoke invitation from organization","messagePattern":"Failed to revoke invitation from organization","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx","lineNumber":729,"sourceCode":"    return await unlinkCollaborator({\n      organizationId,\n      collaboratorId,\n      sessionId: await getCurrentSessionId(),\n    });\n  } catch (error) {\n    throw new Error(error ?? 'Failed to unlink team from organization');\n  }\n}\n\nasync function revokeOrganizationInvite(organizationId: string, invitationId: string) {\n  try {\n    return revokeInvitation({\n      organizationId,\n      invitationId,\n      sessionId: await getCurrentSessionId(),\n    });\n  } catch (error) {\n    throw new Error(error instanceof Error ? error.message : 'Failed to revoke invitation from organization');\n  }\n}\n","sourceCodeStart":711,"sourceCodeEnd":732,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx#L711-L732","documentation":"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.","triggerScenarios":"Thrown at packages/insomnia/src/ui/components/modals/invite-modal/invite-modal.tsx:729 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the invitation still exists and has not already been accepted or revoked","Ensure the current user has admin rights to manage organization invites","Retry after checking network/session validity"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","contentChangedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}