{"record":{"id":"a1897abd84471dac","repo":"BerriAI/litellm","slug":"endpoint-with-id-endpoint-id-not-found","errorCode":null,"errorMessage":"Endpoint with ID '{endpoint_id}' not found","messagePattern":"Endpoint with ID '(.+?)' not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/pass_through_endpoints.py","lineNumber":3164,"sourceCode":"        )\n    except Exception:\n        raise HTTPException(\n            status_code=404,\n            detail={\"error\": \"No pass-through endpoints found\"},\n        )\n\n    pass_through_endpoint_data: Final[list | None] = response.field_value\n    if pass_through_endpoint_data is None:\n        raise HTTPException(\n            status_code=404,\n            detail={\"error\": \"No pass-through endpoints found\"},\n        )\n\n    # Find the endpoint to update\n    found_endpoint: Final = _find_endpoint_by_id(pass_through_endpoint_data, endpoint_id)\n\n    if found_endpoint is None:\n        raise HTTPException(\n            status_code=404,\n            detail={\"error\": f\"Endpoint with ID '{endpoint_id}' not found\"},\n        )\n\n    # Find the index for updating the list\n    endpoint_index = None\n    for idx, endpoint in enumerate(pass_through_endpoint_data):\n        _endpoint = PassThroughGenericEndpoint(**endpoint) if isinstance(endpoint, dict) else endpoint\n        if _endpoint.id == endpoint_id:\n            endpoint_index = idx\n            break\n\n    if endpoint_index is None:\n        raise HTTPException(\n            status_code=404,\n            detail={\"error\": f\"Could not find index for endpoint with ID '{endpoint_id}'\"},\n        )\n","sourceCodeStart":3146,"sourceCodeEnd":3182,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py#L3146-L3182","documentation":"Thrown during pass-through endpoint update: after loading the configured pass_through_endpoints list from the config store, no entry with the given endpoint_id exists (it may have been deleted or the ID is wrong), so there is nothing to modify.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the endpoint_id with the list endpoint (GET pass-through endpoints); use the exact ID returned.","The endpoint may have been deleted; recreate it if needed."],"exampleFix":null,"handlingStrategy":"type-guard","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-14T00:17:10.932Z"}