We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whil logged in as an internal_user to the UI I got the following error while accessing the Usage menu item
I would expect the user should be able to access the usage menu item and view all of there personal usage/spend information with out an error.
{"message": "/global/spend/logs Error: relation \"MonthlyGlobalSpendPerUserPerKey\" does not exist", "level": "ERROR", "timestamp": "2024-10-21T14:39:43.579127"} {"message": "/global/spend/logs Error: relation \"MonthlyGlobalSpendPerUserPerKey\" does not exist\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.11/site-packages/litellm/proxy/spend_tracking/spend_management_endpoints.py\", line 2008, in global_spend_logs\n response = await global_spend_for_internal_user(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/litellm/proxy/spend_tracking/spend_management_endpoints.py\", line 1964, in global_spend_for_internal_user\n raise e\n File \"/usr/local/lib/python3.11/site-packages/litellm/proxy/spend_tracking/spend_management_endpoints.py\", line 1959, in global_spend_for_internal_user\n response = await prisma_client.db.query_raw(sql_query, user_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/prisma/client.py\", line 424, in query_raw\n resp = await self._execute(\n ^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/prisma/client.py\", line 528, in _execute\n return await self._engine.query(builder.build(), tx_id=self._tx_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/prisma/engine/query.py\", line 244, in query\n return await self.request(\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/prisma/engine/http.py\", line 141, in request\n return utils.handle_response_errors(resp, errors_data)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.11/site-packages/prisma/engine/utils.py\", line 192, in handle_response_errors\n raise exc(error)\nprisma.errors.RawQueryError: relation \"MonthlyGlobalSpendPerUserPerKey\" does not exist\n", "level": "ERROR", "timestamp": "2024-10-21T14:39:43.580081"}
No response
The text was updated successfully, but these errors were encountered:
I forgot to mention in the initial response we are running v1.50.1-stable
Sorry, something went wrong.
Same as #6298. Solution provided there
No branches or pull requests
What happened?
Whil logged in as an internal_user to the UI I got the following error while accessing the Usage menu item
I would expect the user should be able to access the usage menu item and view all of there personal usage/spend information with out an error.
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: