AttributeError: 'NoneType' object has no attribute 'CLOSED' #1951
Replies: 5 comments 8 replies
-
|
I am not sure know if this has been resolved, leaving my update here after I noticed the same issue with my development environment. Some observations from my environment
Decided to narrow it down to some package in combination of I currently do not have any idea as to why This might not be the case for you! But thought I would leave my update here! |
Beta Was this translation helpful? Give feedback.
-
|
I have run into the same issue trying to upgrade It must be something related with garbage collection order. Very difficult to reproduce from scratch, but with the same setup it happened 100% of the times I tried. If we take a look at the failing line: I will also try to debug a bit more. |
Beta Was this translation helpful? Give feedback.
-
|
This makes no sense to me at all? How can this line... self._state = HTTPConnectionState.CLOSEDFail with...
It's just a plain ol' I can't reproduce this myself - is anyone able to give some more information on reproducing this. (How are you installing things? How are you running the script? How reliably can you reproduce this?) |
Beta Was this translation helpful? Give feedback.
-
|
I have an error, maybe similar, I am not sure. The error comes from using I use httpx 0.21.3, on a debian-slim (10) docker with python 3.9.9. httpx is installed with the |
Beta Was this translation helpful? Give feedback.
-
|
If you don't have http2 support (see this snippet from dnspython) and create a client, when It appears that the Run this example import httpx
try:
# See if http2 support is available.
with httpx.Client(http2=True):
pass
except Exception:
passOutputs something like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to fetch a simple HTML page but I get an error when the program ends.
When the script ends I get:
I use the latest version
0.21.1.Where is my mistake? Can you help me?
Beta Was this translation helpful? Give feedback.
All reactions