#3999 500 error from the API when call merge on PR that can be merged due to git merge conflict
Closed: Fixed 2 years ago by pingou. Opened 2 years ago by fbo.

To reproduce:

  • Open a PR with code that cannot be merge with the master state.
  • Call the merge API
➜  test-zuul-fork git:(pr15) curl -XPOST -H "Authorization: token XXX"  https://pagure.io/api/0/test-zuul/pull-request/10/merge
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 admin@fedoraproject.org to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>

Looks like we're not catching an exception that the backend (git.py) is throwing. I've received the stacktrace by email, should be straight forward to fix.

Thanks for the report!

Metadata Update from @pingou:
- Issue tagged with: bug, easyfix

2 years ago

Metadata Update from @pingou:
- Issue set to the milestone: 5.3

2 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

2 years ago

Login to comment on this ticket.

Related Pull Requests
  • #4178 Merged 2 years ago