{"record":{"id":"9236905475906931","repo":"BerriAI/litellm","slug":"there-are-no-pass-through-endpoints-setup","errorCode":null,"errorMessage":"There are no pass-through endpoints setup.","messagePattern":"There are no pass-through endpoints setup\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/pass_through_endpoints.py","lineNumber":3386,"sourceCode":"    \"\"\"\n    from litellm.proxy.proxy_server import (\n        get_config_general_settings,\n        update_config_general_settings,\n    )\n\n    ## Get existing pass-through endpoint field value\n\n    try:\n        response: ConfigFieldInfo = await get_config_general_settings(\n            field_name=\"pass_through_endpoints\", user_api_key_dict=user_api_key_dict\n        )\n    except Exception:\n        response = ConfigFieldInfo(field_name=\"pass_through_endpoints\", field_value=None)\n\n    ## Update field by removing endpoint\n    pass_through_endpoint_data: Final[list | None] = response.field_value\n    if response.field_value is None or pass_through_endpoint_data is None:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": \"There are no pass-through endpoints setup.\"},\n        )\n\n    # Find the endpoint to delete\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=400,\n            detail={\"error\": f\"Endpoint with ID '{endpoint_id}' was not found in pass-through endpoint list.\"},\n        )\n\n    # Find the index for deleting from 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:","sourceCodeStart":3368,"sourceCodeEnd":3404,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py#L3368-L3404","documentation":"The delete-endpoint handler found no pass_through_endpoints field value in the general config (None), meaning no pass-through endpoints have ever been registered on this proxy, so a delete operation has nothing to act on.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3386 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure pass-through endpoints in config.yaml or via the API before querying/updating them."],"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-14T05:17:10.506Z"}