Cloning a git repository

I folked the dhis2 tracker app repository to my repo just fine. However I cant clone the repo to my device. It shows the following error:

$ git clone
Cloning into 'dhis2-android-capture-app'...
remote: Enumerating objects: 169495, done.
remote: Counting objects: 100% (3111/3111), done.
remote: Compressing objects: 100% (1344/1344), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 4920 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

what do i have to do for a successful clone? what am I doing wrong?

Hello @Jekap_Jesman, Welcome to the DHIS2 community!

It’s the first time I see this error so I have searched about it, this is what i found:

The error message you’re encountering, “error: RPC failed; curl 18 transfer closed with outstanding read data remaining,” typically indicates an issue with network connectivity or bandwidth limitations during the Git operation.

Check Network Connection: Ensure that your internet connection is stable and not experiencing any interruptions

Increase Git Buffer Size: You can try increasing the buffer size used by Git to handle large objects. This can sometimes help with issues related to large repositories or slow connections. You can do this by running the following command (This command sets the buffer size to 500MB. Adjust the value as needed.):

git config --global http.postBuffer 524288000

I hope this can help you.