Project import error - Request Entity Too Large
We have recently received multiple reports where customers were trying to import a project on GitLab.com and it failed with an error Request Entity Too Large
. The imports are not that big in size. Projects as small as 71 MB's are also getting this.
This is how request and response looks like
The request looks like this:
--------------------------------------------------
POST /import/gitlab_project HTTP/2
Host: gitlab.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en,de;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://gitlab.com/import/gitlab_project/new?namespace_id=ID&name=&path=
Content-Type: multipart/form-data; boundary=---------------------------359482064438312239702820599971
Content-Length: 58061124
Origin: https://gitlab.com
DNT: 1
Connection: keep-alive
Cookie: sidebar_collapsed=false; gitlab_canary=false; auto_devops_settings_dismissed=true; diff_view=inline; explore_groups_landing_dismissed=true; known_sign_in=RGlmQnVEZXVTcmR3V200eUVYcHM4ZGhaZTBSQk1QZEYvTTg2TkRYRjNNUjdsdVR6L3ZtMUt0bFBVZWVNc1pXNitRUms2Z1Z0ZmFTMldoMTJyUzdtV1ZCcllDSWNPT2EzZ0JramRoTjBDbFMxNy9UV1hkdDY4SWs2RnRFUExlUTQtLWd6YURGa1VoS2NKNHd6SlV2ZmYrRkE9PQ%3D%3D--62fccf399de7e1e83405c0111fa0a82a8f0112a5; __cfduid=d79325ba135484f9e5e2da3f8093600fc1599470888; remember_user_token=token; event_filter=all; diff_whitespace=0; _gitlab_session=session_id
Upgrade-Insecure-Requests: 1
TE: Trailers
--------------------------------------------------
The response is this:
--------------------------------------------------
HTTP/2 413 Request Entity Too Large
date: Tue, 08 Sep 2020 15:32:16 GMT
content-type: text/plain; charset=utf-8
content-length: 25
x-content-type-options: nosniff
gitlab-lb: fe-06-lb-gprd
gitlab-sv: web-09-sv-gprd
cf-cache-status: DYNAMIC
cf-request-id: 050ff195350000fca1351f2200000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 5cf9b8685d62fca1-VIE
X-Firefox-Spdy: h2
--------------------------------------------------
(Internal)
- ZD: https://gitlab.zendesk.com/agent/tickets/171952
- ZD: https://gitlab.zendesk.com/agent/tickets/169580
- ZD: https://gitlab.zendesk.com/agent/tickets/171825
- ZD: https://gitlab.zendesk.com/agent/tickets/172179
Related issues: #246565 (closed)
Edited by Benjamin Ma