Git “efrror: RPC failed; result=55, HTTP code = 0” on push

前端 未结 2 1202
旧时难觅i
旧时难觅i 2021-01-02 15:11

I\'ve spent all day on this one and could really use some help. When I try to push a relatively large commit,

Writing objects: 100% (21/21), 908.07 KiB | 0          


        
相关标签:
2条回答
  • 2021-01-02 15:34

    You can follow the debug advices from the BitBucket article:

    Specifically, the 'result=55' portion.
    This is the error code coming from libcurl, the underlying library used in http communications with Git. From the libcurl documentation, a result code of 55 means:

    CURLE_SEND_ERROR (55)
        Failed sending network data.
    

    Cause

    This can be caused by a variety of network related issues or even the Bitbucket service itself. It essentially means that the connection was dropped unexpectedly. Things to check would be to attempt the push from a machine on a 'clean' network outside of any corporate firewalls or proxies. Check all proxy servers to ensure they are properly moving SSL data and are fully permitted to complete.

    To help troubleshoot this issue, try running the push with the command

    GIT_CURL_VERBOSE=1 git push
    

    Workaround

    If after checking all connections and proxy configurations the connection still fails consistently, please report the information above to support. Then switch to SSH. We have a guide to getting it setup for Git at Set up SSH for Git. If you should run into any configuration issues while setting up SSH, please refer to our SSH Troubleshooting guide.

    0 讨论(0)
  • 2021-01-02 15:37

    I experienced the issue due to a misconfiguration, where I pointed to a remote prefixed with http:// instead of https:// the answer hinted on SSL and this helped me to a solution for my issue.

    So my remote configuration should be written:

    $ git remote add origin https://github.com/jonasbn/perl-workflow.git
    

    over:

    $ git remote add origin http://github.com/jonasbn/perl-workflow.git
    

    Take care,

    jonasbn

    0 讨论(0)
提交回复
热议问题