8000 Merge Request Accept Returns 404 · Issue #139 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
Merge Request Accept Returns 404 #139
Closed
@afu1979

Description

@afu1979

I am able to create and comment on merges but not accept them. One issue may be that I am on v7.1.1 but the API was created on 6.9 according to the release notes. I upgraded to the most recent version of python-gitlab.

Any ideas?

merge = {'source_branch': 'release' , 'target_branch': 'master', 'title': "10.22.0 Release Merge to Master" } currentMerge = project.mergerequests.create(merge) print(currentMerge) #this succeeds. currentMerge.merge() #this returns a 404 print(currentMerge)

Stack Trace

Traceback (most recent call last):
  File "C:\Users\brensmith\workspace\ReleaseUtils\src\testmain.py", line 25, in <module>
    currentMerge.merge()
  File "C:\Users\brensmith\Envs\ReleaseUtils\lib\site-packages\gitlab\objects.py", line 1533, in merge
    raise_error_from_response(r, errors)
  File "C:\Users\brensmith\Envs\ReleaseUtils\lib\site-packages\gitlab\exceptions.py", line 168, in raise_error_from_response
    response_body=response.content)
gitlab.exceptions.GitlabOperationError: 404: b'<!DOCTYPE html>\n<html>\n<head>\n  <title>The page you were looking for doesn\'t exist (404)</title>\n  <link href="/static.css" media="screen" rel="stylesheet" type="text/css" />\n</head>\n\n<body>\n  <h1>404</h1>\n  <h3>The page you were looking for doesn\'t exist.</h3>\n  <hr/>\n  <p>You may have mistyped the address or the page may have moved.</p>\n</body>\n</html>\n'


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0