You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
200
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/base_events.py", line 337, in run_until_complete
return future.result()
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "<stdin>", line 4, in head
File "/usr/local/lib/python3.5/site-packages/aiohttp/client.py", line 557, in __aexit__
yield from self._resp.release()
File "/usr/local/lib/python3.5/site-packages/aiohttp/client_reqrep.py", line 668, in release
chunk = yield from content.readany()
File "/usr/local/lib/python3.5/site-packages/aiohttp/streams.py", line 485, in wrapper
result = yield from func(self, *args, **kw)
File "/usr/local/lib/python3.5/site-packages/aiohttp/streams.py", line 548, in readany
return (yield from super().readany())
File "/usr/local/lib/python3.5/site-packages/aiohttp/streams.py", line 278, in readany
raise self._exception
File "/usr/local/lib/python3.5/site-packages/aiohttp/parsers.py", line 189, in set_parser
next(p)
File "/usr/local/lib/python3.5/site-packages/aiohttp/protocol.py", line 318, in __call__
out.feed_eof()
File "/usr/local/lib/python3.5/site-packages/aiohttp/protocol.py", line 392, in feed_eof
raise errors.ContentEncodingError('deflate')
aiohttp.errors.ContentEncodingError: 400, message='deflate'
When I change the url to "https://www.python.org", the error disappear.
I notice that there is a "Content-Encoding: gzip" in the response header when I request "https://www.mongodb.org", while the response of "https://www.python.org" doesn't have the same header. I guess this is what matters.
Could anybody give me some help on this? Thanks.
PS. I'm using Python 3.5.1, aiohttp 0.21.5.
The text was updated successfully, but these errors were encountered:
My code is as followed:
What I got is as followed
When I change the url to "https://www.python.org", the error disappear.
I notice that there is a "Content-Encoding: gzip" in the response header when I request "https://www.mongodb.org", while the response of "https://www.python.org" doesn't have the same header. I guess this is what matters.
Could anybody give me some help on this? Thanks.
PS. I'm using Python 3.5.1, aiohttp 0.21.5.
The text was updated successfully, but these errors were encountered: