Skip to content

UserWarning: Unclosed httpx.AsyncClient #1224

Open
@bitsofinfo

Description

@bitsofinfo

When using zeep.AsyncClient() how should it be cleaned up on exit?

  history_plugin = HistoryPlugin()
  wsdl = os.environ.get("mywsdl")
  settings = Settings(strict=False, xml_huge_tree=True)
  client = zeep.AsyncClient(wsdl, settings=settings, plugins=[history_plugin])

When the program exits:

/me/lib/python3.8/site-packages/httpx/_client.py:1914: UserWarning: Unclosed <httpx.AsyncClient object at 0x1045b8610>. See https://www.python-httpx.org/async/#opening-and-closing-clients for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions