Skip to content

[Bug]: Strange Message on Litellm CLI (Health Check) #10683

Open
@unrealandychan

Description

@unrealandychan

What happened?

A bug happened! When I am using litellm --health, my log system always show:

{"message": "litellm.proxy.proxy_server.user_api_key_auth(): Exception occured - No api key passed in.\nRequester IP Address:127.0.0.1", "level": "ERROR", "timestamp": "2025-05-09T07:57:00.095903", "stacktrace": "Traceback (most recent call last):\n File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 490, in _user_api_key_auth_builder\n raise Exception("No api key passed in.")\nException: No api key passed in."}

This is strange, although I can use curl http://0.0.0.0:4000/health/readiness, but this is not the error log suppose to show.

Relevant log output

{"message": "litellm.proxy.proxy_server.user_api_key_auth(): Exception occured - No api key passed in.\nRequester IP Address:127.0.0.1", "level": "ERROR", "timestamp": "2025-05-09T07:57:00.095903", "stacktrace": "Traceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/litellm/proxy/auth/user_api_key_auth.py\", line 490, in _user_api_key_auth_builder\n raise Exception(\"No api key passed in.\")\nException: No api key passed in."}

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.68.1

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions