Skip to content

Dart package fvm is failing to install any version Exception: Git clone failed #687

Discussion options

You must be logged in to vote

The way I found to fix this is to first use HTTP/1.1 and then increase the post buffer size.

Use HTTPS/1.1

git config --global http.version HTTP/1.1

And then increase the buffer size using

git config --global http.postBuffer 2038500000

However, the trick is to increase the buffer based on the bytes mentioned in the error message that says it cannot download. For example, the git error looks like this:

    Receiving objects:   5% (28560/532810), 19.44 MiB | 336.00 KiB/s
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    error: 5319 bytes of body are still expected
    fetch-pack: unexpected disconnect while reading sideband packet
    fatal: early EOF
 …

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@leoafarias
Comment options

@muhammadmubashir24
Comment options

@muhammadmubashir24
Comment options

@leoafarias
Comment options

@muhammadmubashir24
Comment options

Comment options

You must be logged in to vote
1 reply
@Riyadhalali
Comment options

Answer selected by leoafarias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants