Github Push Error: RPC failed; result=22, HTTP code = 413

前端 未结 17 879
迷失自我
迷失自我 2020-11-28 02:27

stupid issue with Github going on right now. I have a decent amount of changes (~120MB in size), when I attempt to push, this is what happens:

error: RPC fai         


        
17条回答
  •  春和景丽
    2020-11-28 02:55

    https clone of gists fails (ssh works, see below):

    12:00 jean@laptop:~/tmp$ GIT_CURL_VERBOSE=1 git clone https://gist.github.com/123456.git username
    Initialized empty Git repository in /home/jean/tmp/username/.git/
    * Couldn't find host gist.github.com in the .netrc file; using defaults
    * About to connect() to gist.github.com port 443 (#0)
    *   Trying 192.30.252.142... * Connected to gist.github.com (192.30.252.142) port 443 (#0)
    * found 141 certificates in /etc/ssl/certs/ca-certificates.crt
    *        server certificate verification OK
    *        common name: *.github.com (matched)
    *        server certificate expiration date OK
    *        server certificate activation date OK
    *        certificate public key: RSA
    *        certificate version: #3
    *        subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=*.github.com
    *        start date: Mon, 30 Apr 2012 00:00:00 GMT
    *        expire date: Wed, 09 Jul 2014 12:00:00 GMT
    *        issuer: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert High Assurance CA-3
    *        compression: NULL
    *        cipher: ARCFOUR-128
    *        MAC: SHA1
    > GET /123456.git/info/refs?service=git-upload-pack HTTP/1.1
    User-Agent: git/1.7.1
    Host: gist.github.com
    Accept: */*
    Pragma: no-cache
    
    < HTTP/1.1 301 Moved Permanently
    < Server: GitHub.com
    < Date: Fri, 01 Nov 2013 05:00:51 GMT
    < Content-Type: text/html
    < Content-Length: 178
    < Location: https://gist.github.com/gist/123456.git/info/refs?service=git-upload-pack
    < Vary: Accept-Encoding
    <
    * Ignoring the response-body
    * Expire cleared
    * Connection #0 to host gist.github.com left intact
    * Issue another request to this URL: 'https://gist.github.com/gist/123456.git/info/refs?service=git-upload-pack'
    * Couldn't find host gist.github.com in the .netrc file; using defaults
    * Re-using existing connection! (#0) with host gist.github.com
    * Connected to gist.github.com (192.30.252.142) port 443 (#0)
    > GET /gist/123456.git/info/refs?service=git-upload-pack HTTP/1.1
    User-Agent: git/1.7.1
    Host: gist.github.com
    Accept: */*
    Pragma: no-cache
    
    < HTTP/1.1 200 OK
    < Server: GitHub.com
    < Date: Fri, 01 Nov 2013 05:00:52 GMT
    < Content-Type: application/x-git-upload-pack-advertisement
    < Transfer-Encoding: chunked
    < Expires: Fri, 01 Jan 1980 00:00:00 GMT
    < Pragma: no-cache
    < Cache-Control: no-cache, max-age=0, must-revalidate
    < Vary: Accept-Encoding
    <
    * Connection #0 to host gist.github.com left intact
    * Couldn't find host gist.github.com in the .netrc file; using defaults
    * About to connect() to gist.github.com port 443 (#0)
    *   Trying 192.30.252.142... * connected
    * Connected to gist.github.com (192.30.252.142) port 443 (#0)
    * found 141 certificates in /etc/ssl/certs/ca-certificates.crt
    * SSL re-using session ID
    *        server certificate verification OK
    *        common name: *.github.com (matched)
    *        server certificate expiration date OK
    *        server certificate activation date OK
    *        certificate public key: RSA
    *        certificate version: #3
    *        subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=*.github.com
    *        start date: Mon, 30 Apr 2012 00:00:00 GMT
    *        expire date: Wed, 09 Jul 2014 12:00:00 GMT
    *        issuer: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert High Assurance CA-3
    *        compression: NULL
    *        cipher: ARCFOUR-128
    *        MAC: SHA1
    > POST /123456.git/git-upload-pack HTTP/1.1
    User-Agent: git/1.7.1
    Host: gist.github.com
    Accept-Encoding: deflate, gzip
    Content-Type: application/x-git-upload-pack-request
    Accept: application/x-git-upload-pack-result
    Content-Length: 116
    
    < HTTP/1.1 301 Moved Permanently
    < Server: GitHub.com
    < Date: Fri, 01 Nov 2013 05:00:53 GMT
    < Content-Type: text/html
    < Content-Length: 178
    < Location: https://gist.github.com/gist/123456.git/git-upload-pack
    < Vary: Accept-Encoding
    <
    * Ignoring the response-body
    * Connection #0 to host gist.github.com left intact
    * Issue another request to this URL: 'https://gist.github.com/gist/123456.git/git-upload-pack'
    * Violate RFC 2616/10.3.2 and switch from POST to GET
    * Couldn't find host gist.github.com in the .netrc file; using defaults
    * Re-using existing connection! (#0) with host gist.github.com
    * Connected to gist.github.com (192.30.252.142) port 443 (#0)
    > GET /gist/123456.git/git-upload-pack HTTP/1.1
    User-Agent: git/1.7.1
    Host: gist.github.com
    Accept-Encoding: deflate, gzip
    Content-Type: application/x-git-upload-pack-request
    Accept: application/x-git-upload-pack-result
    
    * The requested URL returned error: 400
    * Closing connection #0
    error: RPC failed; result=22, HTTP code = 400
    

    This works: git clone git@gist.github.com:123456.git

提交回复
热议问题