When using HTTPX I get the following error printed sometimes:
An open stream object is being garbage collected; call "stream.close()" explicitly.
According to these two github issues:
- An open stream object is being garbage collected; call "stream.close()" explicitly
- An open stream object is being garbage collected; call "stream.close()" explicitly
This is a Python 3.8.0 issue.
I upgraded to Python 3.8.2.
It fixes the issue!