404 error while forking
Hi Brad,
Trying to use this utility to copy gitops-demo into my repo devopsEtoE.
Running following command in windows git bash. Change first line of gitlab_group_fork.py file to specify absolute path of python in windows. Python version 3.8
Command
./gitlab_group_fork.py 'gitlab.com/gitops-demo' 'gitlab.com/devopsEtoE' -t tokenvalue
Getting below error: ./gitlab_group_fork.py 'gitlab.com/gitops-demo' 'gitlab.com/devopsEtoE' -t fWSAvkJLVY5jYzDN2_ZF Traceback (most recent call last): File "C:\Users\NI7486\Documents\installed\python\lib\site-packages\gitlab\exceptions.py", line 279, in wrapped_f return f(*args, **kwargs) File "C:\Users\NI7486\Documents\installed\python\lib\site-packages\gitlab\mixins.py", line 50, in get server_data = self.gitlab.http_get(path, **kwargs) File "C:\Users\NI7486\Documents\installed\python\lib\site-packages\gitlab__init__.py", line 592, in http_get result = self.http_request( File "C:\Users\NI7486\Documents\installed\python\lib\site-packages\gitlab__init__.py", line 565, in http_request raise GitlabHttpError( gitlab.exceptions.GitlabHttpError: 404: 404 Group Not Found
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "./gitlab_group_fork.py", line 162, in main() File "./gitlab_group_fork.py", line 28, in main src_group_tree = read_src_group(glab, options.srcGroup) File "./gitlab_group_fork.py", line 83, in read_src_group top_level_group = glab.groups.get(src, include_subgroups=True) File "C:\Users\NI7486\Documents\installed\python\lib\site-packages\gitlab\exceptions.py", line 281, in wrapped_f raise error(e.error_message, e.response_code, e.response_body) from e gitlab.exceptions.GitlabGetError: 404: 404 Group Not Found
Regards Kirti Kumar Jain