Unexpected disconnect while reading sideband packet

I am currently at level NH4 of Kafka.

When I run

codecrafters submit or codecrafts test

I see the following error

Submitting changes (commit: b18bf89)...
push changes: add all files: send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

This is the output for git remote

git remote -v
origin  https://git.codecrafters.io/d30d7ede1d6aa8b6 (fetch)
origin  https://git.codecrafters.io/d30d7ede1d6aa8b6 (push)

If I manually push I see the following error

Enumerating objects: 27, done.
Counting objects: 100% (27/27), done.
Delta compression using up to 10 threads
Compressing objects: 100% (19/19), done.
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (24/24), 1.48 MiB | 2.32 MiB/s, done.
Total 24 (delta 9), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

Hi @DeshErBojhaa, could you try running the following command and see if it makes a difference?

git config --global http.postBuffer 157286400

Let me know if it works!

This is the output of my git config --list --global

user.name=tamjidahmed
user.email=mail.to.tamjid@gmail.com
commit.gpgsign=true
fetch.prune=true
url.ssh://git@github.com/.insteadof=https://github.com/
init.defaultbranch=main
http.postbuffer=15728640000

this is what I see when I try to git push or codecraft test

remote: Your push was rejected because the following files were larger than 1MB:        
remote: 
remote: - ./app/__debug_bin729679293 (3MB)        
remote: 
remote: 
remote: Try removing these files and submitting again.        
remote: 
remote: 
remote: Learn more: https://codecrafters.io/large-files        
remote: 
remote: 
remote: 
To https://git.codecrafters.io/d30d7ede1d6aa8b6
 ! [remote rejected] HEAD -> cli-test-1739878407641 (pre-receive hook declined)
error: failed to push some refs to 'https://git.codecrafters.io/d30d7ede1d6aa8b6'

remote: Your push was rejected because the following files were larger than 1MB:
remote:
remote: - ./app/__debug_bin729679293 (3MB)

It looks like you’re running into a new issue with large files accidentally committed into the repo. Could you check out this guide and see if it helps?

Let me know if you need further assistance!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.