Skip to content
New issue

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

[Bug]: error while accesing usage section in UI #6348

Open
ncecere opened this issue Oct 21, 2024 · 2 comments
Open

[Bug]: error while accesing usage section in UI #6348

ncecere opened this issue Oct 21, 2024 · 2 comments
Labels
bug Something isn't working ui

Comments

@ncecere
Copy link

ncecere commented Oct 21, 2024

What happened?

Whil logged in as an internal_user to the UI I got the following error while accessing the Usage menu item

image

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

{"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"}

Twitter / LinkedIn details

No response

@ncecere ncecere added the bug Something isn't working label Oct 21, 2024
@ncecere
Copy link
Author

ncecere commented Oct 21, 2024

I forgot to mention in the initial response we are running v1.50.1-stable

@bgeneto
Copy link

bgeneto commented Oct 22, 2024

Same as #6298. Solution provided there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui
Projects
None yet
Development

No branches or pull requests

3 participants