{"record":{"id":"4fcc10ecbf37452b","repo":"BerriAI/litellm","slug":"failed-to-perform-vantage-dry-run-export-e","errorCode":null,"errorMessage":"Failed to perform Vantage dry run export: {e}","messagePattern":"Failed to perform Vantage dry run export: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":420,"sourceCode":"            \"usage_data\": usage_sample,\n            \"normalized_data\": normalized_sample,\n            \"summary\": summary,\n        }\n\n        verbose_proxy_logger.info(\"Vantage dry run export completed successfully\")\n\n        return VantageExportResponse(\n            message=\"Vantage dry run export completed successfully.\",\n            status=\"success\",\n            dry_run_data=dry_run_result,\n            summary=summary,\n        )\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.error(\"Error performing Vantage dry run export: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to perform Vantage dry run export: {e}\"},\n        )\n\n\n@router.post(\n    \"/vantage/export\",\n    tags=[\"Vantage\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=VantageExportResponse,\n)\nasync def vantage_export(\n    request: VantageExportRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Perform an actual export using the Vantage logger.\n","sourceCodeStart":402,"sourceCodeEnd":438,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L402-L438","documentation":"Catch-all 500 wrapping the Vantage dry-run export: querying spend data, normalizing it, or building the sample/summary threw an unexpected exception. Because it is dry-run, no data was sent to Vantage; the original error is logged with traceback.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:420 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify Vantage settings and credentials are configured, then check logs for the underlying export error."],"exampleFix":null,"handlingStrategy":"try-catch","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"}