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 #129

Open
exOGit opened this issue Oct 3, 2020 · 1 comment
Open

requests.exceptions.TooManyRedirects: Exceeded 30 redirects #129

exOGit opened this issue Oct 3, 2020 · 1 comment

Comments

@exOGit
Copy link

exOGit commented Oct 3, 2020

./add_mirror.sh --git --project-name Mirror/project_name --mirror http://gitlab.example.com/Group/project

Resolving gitlab remote.
Traceback (most recent call last):
  File "lib/manage_gitlab_project.py", line 131, in <module>
    found_group = find_group(name=gitlab_namespace)
  File "lib/manage_gitlab_project.py", line 53, in find_group
    groups = git.groups.list()
  File "/usr/lib/python2.7/dist-packages/gitlab/exceptions.py", line 246, in wrapped_f
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/gitlab/mixins.py", line 133, in list
    obj = self.gitlab.http_list(path, **data)
  File "/usr/lib/python2.7/dist-packages/gitlab/__init__.py", line 573, in http_list
    **kwargs))
  File "/usr/lib/python2.7/dist-packages/gitlab/__init__.py", line 682, in __init__
    self._query(url, query_data, **kwargs)
  File "/usr/lib/python2.7/dist-packages/gitlab/__init__.py", line 687, in _query
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/gitlab/__init__.py", line 481, in http_request
    result = self.session.send(prepped, timeout=timeout, **settings)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 165, in resolve_redirects
    raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
There was an unknown issue with manage_gitlab_project.py

Can anyone help with this ?..
I don't know what's the issue...

@samrocketman
Copy link
Owner

Sounds like a frontend misconfiguration on your GitLab host. 30 redirects is a lot and is likely an infinite loop.

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

2 participants