Skip to content

AsyncHttpxClientWrapper has no attribute '_state' in v0.28.0 #3431

@vintagedave

Description

@vintagedave

Hello. When I upgrade HTTPX from 0.27.0 to 0.28.0, I get the following error. I do not get a call stack, and I'm not expert enough on Python to know why (usually I would get one.)

This is likely being called by the openai library, which is version 1.50.2.

 File "/opt/venv/lib/python3.11/site-packages/httpx/_client.py", line 1984, in aclose

    if self._state != ClientState.CLOSED:

       ^^^^^^^^^^^

AttributeError: 'AsyncHttpxClientWrapper' object has no attribute '_state'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions