Lesstep
GitLab.com · Self-Managed · REST API · Checked October 25, 2026

GitLab: the changes of a merge request are cut short, or answer 404

GitLab's REST API gives the files a merge request changes in pages from List merge request diffs (GET /projects/:id/merge_requests/:merge_request_iid/diffs, GitLab 15.7 and later), and in one answer from the older GET /projects/:id/merge_requests/:merge_request_iid/changes, which GitLab deprecated in 15.7 and plans to remove in API v5. Both give what GitLab stored for the merge request, and the diff limits decide how much that is. The answers below are what gitlab.com said on October 25, 2026, with the rules from GitLab's documentation behind them.

HTTP/1.1 404 Not Found

{"message":"404 Not found"}

The diff limits

To review a diff GitLab cuts short: Merge Request (MR) Review Inbox for GitLab, a plugin for JetBrains IDEs, reads up to 3,000 changed files, 100 a page, and opens each in the IDE's diff with the whole file read at the merge base and at the head commit.

200, but files or diffs are missing

404 from /diffs or /changes

503 "The response from Gitaly is too large to load"

When one answer from Gitaly, the service that reads the repository, would go over gRPC's 4 MiB message limit, GitLab 19.3 and later answer 503 with this text. The REST API puts it in message:

{"message":"The response from Gitaly is too large to load. Maybe, the repository or merge request contains too many commits. This is a size limit, not a temporary error."}

Waiting does not fix it. Before 19.3, GitLab gave Upstream Gitaly has been exhausted. Try again later for this limit too, the same text as when Gitaly is busy, so on an older GitLab a 503 with that text that keeps coming back may be this limit. Requests from a merge request's Changes tab and its conflicts page get a general text in error instead: GitLab is currently unable to handle this request. Please try again later. on GitLab.com, and The git server, Gitaly, is not available at this time. Please contact your administrator. on GitLab Self-Managed. To compare the branches yourself, see What to do below (GitLab's wraps_gitaly_errors.rb, merge request !244223, api.rb and handles_gitaly_errors.rb).

What to do

GitLab merge requests in IntelliJ IDEA

Merge Request (MR) Review Inbox for GitLab, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, reads a merge request's changed files from the list of diffs, 100 a page, up to 3,000 files, and from /changes on a GitLab that answers 404 for the list. Each file opens in the IDE's diff with the whole file read at the merge base and at the head commit, so a file whose diff GitLab left out still shows its changes. From version 1.0.17, when GitLab kept only the first files (changes_count ending in "+", or "overflow": true) or there are more than 3,000, the count of viewed files says that only the first files are listed and that git diff shows the rest; before, the list ended without saying so. Right after a merge request is created, it asks again for a few seconds until GitLab has worked out the diff. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.

More: GitLab 404 "Project Not Found" · GitLab merge request list refused (400, 404) · GitLab 429 "Retry later" (rate limits) · GitLab 401 "invalid_token" · GitLab "insufficient_scope" · GitLab merge refused (405, 409, 422) · GitLab approval refused (401, 409) · GitLab comment or thread refused (400, 403) · GitLab merge request not created (409, 422, 400) · GitLab rebase refused or failed (403, 409) · GitLab auto-merge refused (405) or canceled · GitLab "compare_timeout": true (diff limits) · GitLab merge request plugins for IntelliJ IDEA, compared · 日本語