Can't merge PR #211447
🏷️ Discussion TypeQuestion BodyCurrently, I can't merge the PR as it always shows "The server is currently unable to perform this operation. Please try again later". I have checked https://www.githubstatus.com/ and seems like there is no outage. Is anyone else experiencing the same issue or does anyone know of any workarounds? Any help would be greatly appreciated. Thank you! |
Replies: 5 comments 3 replies
|
That message is a generic server-side error, so it's hard to pin down the cause from here, but a few things are worth trying: 1. Check the PR's merge state and try merging from the CLI. If 2. If it keeps failing and you're allowed to push to the base branch, merge locally: GitHub's docs say a PR "can be marked as merged if its head branch commits become reachable from the base branch", including when they're pushed directly (https://docs.github.com/en/pull-requests/reference/pull-request-merges). Use a normal merge like the one above, not a local squash or rebase. Those create new commits, so I wouldn't expect GitHub to detect the PR as merged. Note that this route skips the PR's branch protection checks, so only use it if that's acceptable for your repo. 3. If only this PR is affected and it keeps happening, send the PR URL to GitHub Support. A persistent server error on a single PR is something only they can look into. It would help narrow it down if you can say whether other PRs in the same repo merge fine, and roughly how big this one is (files and commits). |
I've seen this error before. it's usually one of these
If none of that works, you can merge locally as a workaround: git checkout main
git pull
git merge resubmission-updates
git push origin mainGitHub will automatically mark the PR as merged once the commits land on Hope this helps! |
|
The cause is probably from large PR which cause server timeout. The solution is Merge locally instead of via web interface or Github CLI. |
|
@japanj @sandeep-2607 I got this just now for 2 line of code chnage in 2 small files, why is thi snot logged on https://www.githubstatus.com/?? |
|
I have the same issue with about 15 lines added on 2 files (1 line add plus 1 test). |


That message is a generic server-side error, so it's hard to pin down the cause from here, but a few things are worth trying:
1. Check the PR's merge state and try merging from the CLI.
If
mergeablecomes backUNKNOWN, GitHub hasn't finished computing whether the PR can be merged yet. That can happen on very large PRs. Wait a few minutes and try again. The CLI may hit the same error as the button, but it's a quick test and the output is more useful.2. If it keeps failing and you're allowed to push to the base branch, merge locally: