{"record":{"id":"3607c2cb50c32f51","repo":"BerriAI/litellm","slug":"failed-to-decrypt-vantage-integration-token-check","errorCode":null,"errorMessage":"Failed to decrypt Vantage integration token. Check your salt key configuration.","messagePattern":"Failed to decrypt Vantage integration token\\. Check your salt key configuration\\.","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":116,"sourceCode":"    encrypted_api_key: Final = settings.get(\"api_key\")\n    if encrypted_api_key:\n        decrypted_api_key = decrypt_value_helper(encrypted_api_key, key=\"vantage_api_key\", exception_type=\"error\")\n        if decrypted_api_key is None:\n            raise HTTPException(\n                status_code=500,\n                detail={\"error\": \"Failed to decrypt Vantage API key. Check your salt key configuration.\"},\n            )\n        settings[\"api_key\"] = decrypted_api_key\n\n    encrypted_integration_token: Final = settings.get(\"integration_token\")\n    if encrypted_integration_token:\n        decrypted_integration_token: Final = decrypt_value_helper(\n            encrypted_integration_token,\n            key=\"vantage_integration_token\",\n            exception_type=\"error\",\n        )\n        if decrypted_integration_token is None:\n            raise HTTPException(\n                status_code=500,\n                detail={\"error\": \"Failed to decrypt Vantage integration token. Check your salt key configuration.\"},\n            )\n        settings[\"integration_token\"] = decrypted_integration_token\n\n    return settings\n\n\n@router.get(\n    \"/vantage/settings\",\n    tags=[\"Vantage\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=VantageSettingsView,\n)\nasync def get_vantage_settings(\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L98-L134","documentation":"Same decryption failure path as the api_key, but for the Vantage integration_token setting: decrypt_value_helper returned None, indicating a salt-key mismatch or corrupted ciphertext for that specific field. The API key decrypt succeeded, so only the token's stored value is at fault.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure LITELLM_SALT_KEY matches the value used when the integration token was encrypted; re-configure the token if it changed."],"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"}