{"record":{"id":"b54fc70e416fe05c","repo":"BerriAI/litellm","slug":"error-getting-table-info-exc","errorCode":null,"errorMessage":"Error getting table info: {exc}","messagePattern":"Error getting table info: (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/focus/database.py","lineNumber":117,"sourceCode":"            return pl.DataFrame(db_response, infer_schema_length=None)\n        except Exception as exc:\n            raise RuntimeError(f\"Error retrieving usage data: {exc}\") from exc\n\n    async def get_table_info(self) -> dict[str, Any]:\n        \"\"\"Return metadata about the spend table for diagnostics.\"\"\"\n        client: Final = self._ensure_prisma_client()\n\n        info_query: Final = \"\"\"\n        SELECT column_name, data_type, is_nullable\n        FROM information_schema.columns\n        WHERE table_name = 'LiteLLM_DailyUserSpend'\n        ORDER BY ordinal_position;\n        \"\"\"\n        try:\n            columns_response: Final = await client.db.query_raw(info_query)\n            return {\"columns\": columns_response, \"table_name\": \"LiteLLM_DailyUserSpend\"}\n        except Exception as exc:\n            raise RuntimeError(f\"Error getting table info: {exc}\") from exc\n","sourceCodeStart":99,"sourceCodeEnd":118,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/focus/database.py#L99-L118","documentation":"Error \"Error getting table info: {exc}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/focus/database.py:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the database connection and table permissions; see the wrapped exception."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}