httpx.StreamClosed: Attempted to read or stream content, but the stream has been closed.
Opened this issue · 0 comments
I'm getting the below error when simply trying to run ipfshttpclient.connect()
in my script. I'm using version 0.8.0 of go-ipfs.
Error:
Traceback (most recent call last): File "/Users/alanraff/Projects/NFT/resources/scripts/test.py", line 3, in <module> ipfs_client = ipfshttpclient.connect() File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/client/__init__.py", line 124, in connect assert_version(client.apply_workarounds()["Version"]) File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/client/__init__.py", line 233, in apply_workarounds version_info = self.version() File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/client/base.py", line 229, in wrapper2 result = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/client/miscellaneous.py", line 204, in version return self._client.request('/version', decoder='json', **kwargs) File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/http_common.py", line 594, in request return stream_decode_full(closables, res, File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/http_common.py", line 189, in stream_decode_full result = list(response_iter) # type: ty.List[T_co] File "/usr/local/lib/python3.9/site-packages/ipfshttpclient/http_common.py", line 131, in __next__ data = next(self._response_iter) # type: bytes File "/usr/local/lib/python3.9/site-packages/httpx/_models.py", line 1497, in iter_bytes for raw_bytes in self.iter_raw(): File "/usr/local/lib/python3.9/site-packages/httpx/_models.py", line 1542, in iter_raw raise StreamClosed() httpx.StreamClosed: Attempted to read or stream content, but the stream has been closed.
Has anyone seen this before?