Official GitLab repository graph can not be displayed

Summary

GitLab official repository graph can not be displayed. From the developer console you can see that after ~20 seconds the server returns response with code 500.

The same bug possibly may occure for other big repositories (>255K commits), but for example www-gitlab-com isn't affected.

Steps to reproduce

  1. Open official GitLab repository graph (https://gitlab.com/gitlab-org/gitlab/-/network/master)
  2. Wait for 20 seconds
  3. In the developer console you will see, that request to the server for graph data (GET https://gitlab.com/gitlab-org/gitlab/-/network/master) will return error page with code 500.

Example Project

https://gitlab.com/gitlab-org/gitlab/

What is the current bug behavior?

Repository graph can't be displayed.

What is the expected correct behavior?

Repository graph or error label should appear on this page.

Relevant logs and/or screenshots

Request info from dev console:

Click to expand
General:
Request URL: https://gitlab.com/gitlab-org/gitlab/-/network/master?format=json
Request Method: GET
Status Code: 500 
Remote Address: 172.65.251.78:443
Referrer Policy: strict-origin-when-cross-origin

Response headers:
cache-control: no-cache, no-store, max-age=0, must-revalidate
cf-cache-status: DYNAMIC
cf-ray: 69d8be8daa895c98-FRA
content-length: 2926
content-type: text/html; charset=utf-8
date: Wed, 13 Oct 2021 12:59:37 GMT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expires: Fri, 01 Jan 1990 00:00:00 GMT
gitlab-lb: fe-10-lb-gprd
gitlab-sv: gke-cny-web
pragma: no-cache
server: cloudflare
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-request-id: 01FHWVRNATDPVEE56TBGDN5XCE
x-runtime: 19.224594

Request headers:
:authority: gitlab.com
:method: GET
:path: /gitlab-org/gitlab/-/network/master?format=json
:scheme: https
accept: application/json, text/plain, */*
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9,cs-CZ;q=0.8,cs;q=0.7,ru-RU;q=0.6,ru;q=0.5
cache-control: no-cache
cookie: hidden
dnt: 1
pragma: no-cache
referer: https://gitlab.com/gitlab-org/gitlab/-/network/master
sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
x-csrf-token: hidden
x-requested-with: XMLHttpRequest

Query string parameters:
format: json

Output of checks

This bug happens on GitLab.com