Internal Users Logs access #19039
Unanswered
moulaligithub
asked this question in
Q&A
Replies: 1 comment
-
|
@moulaligithub what litellm version are you using? if you've deployed this on proxy CLI then make sure you have all packages installed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m new to this. I created an internal user through the UI by assigning a Team and Role. However, when I log in as that internal user and try to access logs, but it always shows zero logs for the team. I am using v1.80.5 and also I am able to find below error
19:59:01 - LiteLLM Proxy:ERROR: utils.py:3622 - Exception: 'dict' object has no attribute 'user_id' │
│ litellm Traceback (most recent call last): │
│ litellm File "/usr/lib/python3.13/site-packages/litellm/proxy/spend_tracking/spend_management_endpoints.py", line 1759, in ui_view_spend_logs │
│ litellm can_view_team = await _can_team_member_view_log( │
│ litellm ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ litellm ...<3 lines>... │
│ litellm ) │
│ litellm ^ │
│ litellm File "/usr/lib/python3.13/site-packages/litellm/proxy/spend_tracking/spend_management_endpoints.py", line 3089, in _can_team_member_view_log │
│ litellm return _is_user_team_admin(user_api_key_dict=user_api_key_dict, team_obj=team_obj) │
│ litellm File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/common_utils.py", line 26, in _is_user_team_admin │
│ litellm member.user_id is not None and member.user_id == user_api_key_dict.user_id │
│ litellm ^^^^^^^^^^^^^^ │
│ litellm AttributeError: 'dict' object has no attribute 'user_id'
Beta Was this translation helpful? Give feedback.
All reactions