0

I am trying to use python-gitlab library to access content from gitswarm, from my python code, which is giving me the error given below. Can some of confirm if this is a possible option.

import gitlab

gl = gitlab.Gitlab(url='https://gitswarm.XXX/REPO/PROJECT', private_token='XXXX')
gl.auth()
projects = gl.projects.list(iterator=True)
for project in projects:
    print(project)

Exception:

gitlab.exceptions.GitlabParsingError: Attempted to initialize RESTObject with a non-dictionary value: 
This likely indicates an incorrect or malformed server response.
Swathi
  • 1
  • Your syntax works for me, although I don't think you need `gl.auth()`. I am using a self-hosted GitLab instance, so this could be an incompatibility with Gitswarm API vs GitLab API. – JGC Sep 28 '22 at 17:50

0 Answers0