[Bug]: NoneType object is not iterable
What happened?
I get this and in console
11:33:48 - LiteLLM Proxy:ERROR: internal_user_endpoints.py:395 - litellm.proxy.proxy_server.user_info(): Exception occured - 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 308, in user_info
return await _get_user_info_for_proxy_admin()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 431, in _get_user_info_for_proxy_admin
for key in _keys_in_db:
TypeError: 'NoneType' object is not iterable
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
latest
Twitter / LinkedIn details
No response
same issue
https://github.com/BerriAI/litellm/blob/main/litellm/proxy/management_endpoints/internal_user_endpoints.py#L445
Looking here if there is no key there is the error as that case is not handled.
@ishaan-jaff it seems an easy fix but probably require some alerting to the user.
can we get help from a contributor PR on this + with testing ?
Same issue here!
Same issue
Same! Please advise how we can resolve this
same
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
the problem is still valid
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
sigh