{"record":{"id":"a7da0fd3893751cf","repo":"BerriAI/litellm","slug":"organization-not-found","errorCode":null,"errorMessage":"Organization not found","messagePattern":"Organization not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/management_endpoints/organization_endpoints.py","lineNumber":1102,"sourceCode":"        prisma_client=prisma_client,\n    )\n\n    response: Final = await _table(OrganizationRepository(prisma_client)).find_unique(\n        where={\"organization_id\": organization_id},\n        include={\n            \"litellm_budget_table\": True,\n            \"members\": {\n                \"include\": {\n                    \"user\": True,\n                }\n            },\n            \"teams\": True,\n            \"object_permission\": True,\n        },\n    )\n\n    if response is None:\n        raise HTTPException(status_code=404, detail={\"error\": \"Organization not found\"})\n\n    response_pydantic_obj: Final = LiteLLM_OrganizationTableWithMembers.model_validate(response.model_dump())\n\n    return response_pydantic_obj\n\n\n@router.post(\n    \"/organization/info\",\n    tags=[\"organization management\"],\n    dependencies=[Depends(user_api_key_auth)],\n)\nasync def deprecated_info_organization(\n    data: OrganizationRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    DEPRECATED: Use GET /organization/info instead\n    \"\"\"","sourceCodeStart":1084,"sourceCodeEnd":1120,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/organization_endpoints.py#L1084-L1120","documentation":"Lookup guard on organization info: the find_unique query (including budget, members, teams, and object_permission relations) returned no row for the requested organization_id, so the org does not exist; 404 raised before pydantic conversion.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/organization_endpoints.py:1102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the organization id exists via /organization/list."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}