Skip to content

[Bug] litellm async HTTP client not closed (resource leak warning) #131

Description

@Oxygennnnn

Describe the Bug

Each run emits a warning that the async HTTP client was not properly closed.

Operating System

Windows11

Python Version

3.12

Steps to Reproduce

Run the litellm workflow

Logs or Screenshots

Expected
No unclosed-client warnings; graceful teardown.
Actual
Warning surfaced after workflow execution.

Additional Context

Suggested Fix
• Use client context managers or a shared lifecycle with explicit aclose() at shutdown (e.g., atexit handler).
Priority
P1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions