#Accident scene
Git submitted push with enrollment error:
Enumerating objects: 448, done.
Delta compression using up to 4 threads
Total 424 (delta 109), reused 0 (delta 0), pack-reused 0
POST git-receive-pack (433422517 bytes)
Error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
#Solution
As can be seen from the above error message, the code size submitted by Git is 433422517 bytes, about 400m; It is suspected that the submitted documents are too large.
1. First, modify the GIT global configuration
git config –global http.postBuffer 524288000
The result is pushed again, which is invalid
it is suspected that the size of the transfer file is limited in other places. In retrospect, the server where Git is located was accessed directly, but later it was accessed after being forwarded by Nginx. Therefore, I think there may be a problem with the Nginx configuration.
2. View git related configuration of Nginx
location ~ /git(/.*) {
# others
client_max_body_size 200M;
}
The client_max_body_Size
modify the configuration to 500m and restart Nginx
push again to solve the problem.
Read More:
- [Solved] Git push Warning: error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
- Git push error: error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
- [Solved] Curl: (22) the requested URL returned error: 404 when installing XXX on MAC brew
- Git push error: RPC failed; curl 7 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- [Solved] idea git Update failed unable to access ‘httpxxx‘ The requested URL returned error: 500
- Git: “error: RPC failed; curl 18 transfer closed with outstanding read data remaining”
- The requested URL returned error: 403 [How to Solve]
- [Solved] git error: RPC failed; curl 56 Recv failure:Connection was resetB/s
- [Solved] Github Push Codes Error: “error:RPC failed;curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 10054”
- Git Error: error RPC failed; curl 56 OpenSSL SSL_read SSL_ERROR_SYSCALL, errno 10054
- [step on the pit] idea submits the code to GitHub and prompts 403 — the requested URL returned error: 403
- fatal: unable to access”: The requested URL returned error: 500
- git clone,pod install error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- Git Pull Error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errfno 10054
- Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…
- RPC failed; curl 56 SSLRead() return error
- Git Push Error: failed to push some refs to ‘[email protected]:
- Github Clone Error: RPC failed; result=56, HTTP code=200
- Git Push remote error: GH007: Your push would publish a private email address.