You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please remove traceback.print_stack() in File "/usr/local/lib/python3.11/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 1239, in _return_user_api_key_auth_obj
for each request this print shown and cause bad mood for users.
Relevant log output
litellm-1 | File "/usr/local/bin/litellm", line 8, in<module>
litellm-1 |sys.exit(run_server())
litellm-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
litellm-1 |return self.main(*args, **kwargs)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
litellm-1 | rv = self.invoke(ctx)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
litellm-1 |return ctx.invoke(self.callback, **ctx.params)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
litellm-1 |return __callback(*args, **kwargs)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/litellm/proxy/proxy_cli.py", line 722, in run_server
litellm-1 | uvicorn.run(**uvicorn_args)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 575, in run
litellm-1 |server.run()
litellm-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run
litellm-1 |return asyncio.run(self.serve(sockets=sockets))
litellm-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
litellm-1 |return runner.run(main)
litellm-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
litellm-1 |return self._loop.run_until_complete(task)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
litellm-1 | result = await app( # type: ignore[func-returns-value]
litellm-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
litellm-1 |return await self.app(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
litellm-1 | await super().__call__(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 352, in _sentry_patched_asgi_app
litellm-1 |return await middleware(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 144, in _run_asgi3
litellm-1 |return await self._run_app(scope, receive, send, asgi_version=3)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 230, in _run_app
litellm-1 |return await self.app(
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
litellm-1 | await self.middleware_stack(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
litellm-1 | await self.app(scope, receive, _send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
litellm-1 | await self.app(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
litellm-1 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
litellm-1 | await app(scope, receive, sender)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
litellm-1 | await self.middleware_stack(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
litellm-1 | await route.handle(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
litellm-1 | await self.app(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
litellm-1 | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
litellm-1 | await app(scope, receive, sender)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
litellm-1 | response = await func(request)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 269, in app
litellm-1 | solved_result = await solve_dependencies(
litellm-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/dependencies/utils.py", line 600, in solve_dependencies
litellm-1 | solved = await call(**sub_values)
litellm-1 | File "/usr/local/lib/python3.11/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 1175, in user_api_key_auth
litellm-1 |return _return_user_api_key_auth_obj(
litellm-1 | File "/usr/local/lib/python3.11/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 1239, in _return_user_api_key_auth_obj
litellm-1 |traceback.print_stack()
litellm-1 | INFO: 5.34.194.153:41550 - "GET /models HTTP/1.1" 200 OK
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
What happened?
please remove
traceback.print_stack()
in File "/usr/local/lib/python3.11/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 1239, in _return_user_api_key_auth_objfor each request this print shown and cause bad mood for users.
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: