-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Too many 301 redirects #3132
Comments
|
I increased num of redirects to 30, but it doesn't help. I've checked the history of |
aiohttp 2.3 is not supported, aiohttp 3.x should raise an exception on redirection limit exceeding. |
thanks |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
aiohttp.ClientSession.get()
does 10 301 redirection and return empty text responseExpected behaviour
Passing the URL, get a not empty response
Actual behaviour
I make a request and in
history
of theresponse
object I see 10 redirections with status code 301 and text of response is empty, I tried to make this request withcurl
andrequests
and the result was successful. got this result forurl1 and url2
Steps to reproduce
Your environment
ubuntu 16.04, Python 3.6, Client
aiohttp==2.3.2
Also, tried aiohttp==3.3.2, and got exception
line 418, in _request history[0].request_info, tuple(history)) aiohttp.client_exceptions.TooManyRedirects: 0, message=''
The text was updated successfully, but these errors were encountered: