-
I try use httpx and get unexpected exception In [4]: httpx.get(u, allow_redirects=True) End of trace
It works if I use requests/aiohttp/curl. Headers from response if I use requests In [7]: r = requests.get(u, allow_redirects=True)
In [8]: r.headers
Out[8]: {'Server': 'nginx/1.17.3', 'Date': 'Tue, 21 Sep 2021 21:08:24 GMT', 'Content-Type': 'text/xml', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'Content-Encoding': 'gzip'} Where is my mistake? Can you help me? |
Beta Was this translation helpful? Give feedback.
Answered by
JMarkin
Sep 21, 2021
Replies: 1 comment 2 replies
-
I found problem |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JMarkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found problem
In my case, I use uvicorn==0.11.8 and max version of h11 is 0.9.x
I don't have errors/warnings on install httpx.
I think need add version of h11>=11 in setup.py(httpcore or httpx).