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

requests.exceptions.TooManyRedirects: Exceeded 30 redirects #160

Open
fastfire opened this issue Apr 24, 2020 · 0 comments
Open

requests.exceptions.TooManyRedirects: Exceeded 30 redirects #160

fastfire opened this issue Apr 24, 2020 · 0 comments

Comments

@fastfire
Copy link

Description
When I run photon on some targets this output is returned:

Output
Traceback (most recent call last):
File "photon.py", line 309, in
zap(main_url, args.archive, domain, host, internal, robots, proxies)
File "/home/massimo_giaimo/pentest/tools/osint/Photon/core/zap.py", line 25, in zap
proxies=random.choice(proxies)).text
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/sessions.py", line 665, in send
history = [resp for resp in gen] if allow_redirects else []
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/sessions.py", line 665, in
history = [resp for resp in gen] if allow_redirects else []
File "/home/massimo_giaimo/.local/lib/python3.6/site-packages/requests/sessions.py", line 166, in resolve_redirects
raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.

Platform
os: Ubuntu 18.04
python: Python 3.6.9

Steps to reproduce
python3 photon.py -u $target (example: www.wuerth-phoenix.com)

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