ipfs-shipyard / ipfs-shipyard/py-ipfs-http-client
httpx.StreamClosed: Attempted to read or stream content, but the stream has been closed.
- Dominant language
- Python
- Stars
- 685
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Description
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
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.