{"record":{"id":"a6b59b97b2fa1a79","repo":"BerriAI/litellm","slug":"specify-list-of-budget-id-s-to-query-passed-in-d","errorCode":null,"errorMessage":"Specify list of budget id's to query. Passed in={data.budgets}","messagePattern":"Specify list of budget id's to query\\. Passed in=(.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/budget_management_endpoints.py","lineNumber":211,"sourceCode":"@router.post(\n    \"/budget/info\",\n    tags=[\"budget management\"],\n    dependencies=[Depends(user_api_key_auth)],\n)\nasync def info_budget(data: BudgetRequest):\n    \"\"\"\n    Get the budget id specific information\n\n    Parameters:\n    - budgets: List[str] - The list of budget ids to get information for\n    \"\"\"\n    from litellm.proxy.proxy_server import prisma_client\n\n    if prisma_client is None:\n        raise HTTPException(status_code=500, detail={\"error\": \"No db connected\"})\n\n    if len(data.budgets) == 0:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": f\"Specify list of budget id's to query. Passed in={data.budgets}\"},\n        )\n    response: Final = await BudgetRepository(prisma_client).table.find_many(\n        where={\"budget_id\": {\"in\": data.budgets}},\n    )\n\n    return response\n\n\n@router.get(\n    \"/budget/settings\",\n    tags=[\"budget management\"],\n    dependencies=[Depends(user_api_key_auth)],\n)\nasync def budget_settings(\n    budget_id: str,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/budget_management_endpoints.py#L193-L229","documentation":"Error \"Specify list of budget id's to query. Passed in={data.budgets}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/budget_management_endpoints.py:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-empty list of budget ids in the budgets field of the request."],"exampleFix":null,"handlingStrategy":null,"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"}