API responds 'GitLab is not responding' when doing a large repository compare
Summary
When trying to pull a large repository compare of two gitlab-ee branches/tags, I consistently get a GitLab is not responding
message. Other times, I have received a Bad Gateway
error. The same compare request seems to work on gitlab-ce, however the amount of data being asked for is less.
Alternately, this bug could also be interpreted as a request for pagination of this API endpoint. It seems ambitious to think that a repository compare across two arbitrary branches should be returned in one request.
Steps to reproduce
Go to https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ee/repository/compare?from=v10.5.3-ee&to=10-6-stable-ee. The request should result in either an HTTP error or a GitLab is not responding
error. I did get it to complete one or two times, but have not been able to reproduce that success.
This one for CE should work: https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/repository/compare?from=v10.5.3&to=10-6-stable
What is the current bug behavior?
The request results in a 502 Bad Gateway
, or a message saying GitLab is not responding
What is the expected correct behavior?
JSON data for the requested results