Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpx.StreamClosed: Attempted to read or stream content, but the stream has been closed. #302

Open
Un1xG0d opened this issue Oct 10, 2021 · 0 comments

Comments

@Un1xG0d
Copy link

Un1xG0d commented Oct 10, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant