Streamline your flow

Can T Create Projects In V4 Api Issue 291 Python Gitlab Python

Can T Create Projects In V4 Api Issue 291 Python Gitlab Python
Can T Create Projects In V4 Api Issue 291 Python Gitlab Python

Can T Create Projects In V4 Api Issue 291 Python Gitlab Python From what i understand you need to explicitly define the visibility level attribute when creating your project. this seems to be a restriction configured on the server side. After the update to 14.5 we can't create projects via the api anymore. we did not change the personal access token and personal access token has the scope api. furthermore, the user can create projects via the ui. not applicable. what is the current bug behavior?.

Python Gitlab Github
Python Gitlab Github

Python Gitlab Github Python gitlab currently only supports v4 of the gitlab rest api. to connect to gitlab or another gitlab instance, create a gitlab.gitlab object: you can use different types of tokens for authenticated requests against the gitlab api. you will most likely want to use a resource (project group) access token or a personal access token. I'm writing a python module to create projects in gitlab, but i can't figure out how to change the default project settings, like remove source branch after merge. i've tried passing the argument to the projects.create() call, but it seems to be ignored. Since 14.5.2 we are getting 403 forbidden errors when trying to create projects using tokens with api calls. we’ve tried personal access tokens of an admin, impersonation tokens, all with api scope, but all return 403. Alice = gl.users.list(username='alice', get all=false)[0] user project = alice.projects.create({'name': 'project'}) user projects = alice.projects.list(get all=true).

Gitlab Create Issue
Gitlab Create Issue

Gitlab Create Issue Since 14.5.2 we are getting 403 forbidden errors when trying to create projects using tokens with api calls. we’ve tried personal access tokens of an admin, impersonation tokens, all with api scope, but all return 403. Alice = gl.users.list(username='alice', get all=false)[0] user project = alice.projects.create({'name': 'project'}) user projects = alice.projects.list(get all=true). Since gitlab ce 14.5.2 we can't create projects via the rest api, all calls result in "403 forbidden". and according to this forum post ( forum.gitlab t getting 403 when trying to create project using token and api 62749), we're not the only ones having that problem. I was trying to create a project with visibility public with: project = self.gl.projects.create ( {'name': self.product, 'import url': import url, 'visibility': 'public'}) but seems that doesn't work, and i have to use the api v3 one like:. I used python and tried to create 10 projects and it happens the same so it is about the gitlab server. i am running the server as a container in windows 10 using the latest image. steps to reproduce expand for output related to the python code. At the moment it works for the api calls that haven't changed since v3 (a big part of the api is compatible). i'll push updates in the coming days to implement the v4 specific apis.

Error Creating New Projects Via Gitlab Ui Self Managed Gitlab Forum
Error Creating New Projects Via Gitlab Ui Self Managed Gitlab Forum

Error Creating New Projects Via Gitlab Ui Self Managed Gitlab Forum Since gitlab ce 14.5.2 we can't create projects via the rest api, all calls result in "403 forbidden". and according to this forum post ( forum.gitlab t getting 403 when trying to create project using token and api 62749), we're not the only ones having that problem. I was trying to create a project with visibility public with: project = self.gl.projects.create ( {'name': self.product, 'import url': import url, 'visibility': 'public'}) but seems that doesn't work, and i have to use the api v3 one like:. I used python and tried to create 10 projects and it happens the same so it is about the gitlab server. i am running the server as a container in windows 10 using the latest image. steps to reproduce expand for output related to the python code. At the moment it works for the api calls that haven't changed since v3 (a big part of the api is compatible). i'll push updates in the coming days to implement the v4 specific apis.

Comments are closed.