# Unexpected disconnect while reading sideband packet

**URL:** <https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897>\
**Category:** General\
**Tags:** challenge:kafka\
**Created:** [February 16, 2025, 9:29am UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897 "2025-02-16T09:29:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeshErBojhaa](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/desherbojhaa/32/5010_2.png) [@DeshErBojhaa](https://forum.codecrafters.io/u/DeshErBojhaa)\
**Post date:** [February 16, 2025, 9:29am UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897/1 "2025-02-16T09:29:40Z")

</div>

I am currently at level `NH4` of Kafka.

When I run

`codecrafters submit ` or `codecrafts test`

I see the following error

```auto
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

```auto
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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [February 16, 2025, 6:38pm UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897/2 "2025-02-16T18:38:11Z")

</div>

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

```bash
git config --global http.postBuffer 157286400

```

> <https://stackoverflow.com/questions/66366582/github-unexpected-disconnect-while-reading-sideband-packet>

Let me know if it works!

---

<div class="post-metadata">

**Author:** ![DeshErBojhaa](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/desherbojhaa/32/5010_2.png) [@DeshErBojhaa](https://forum.codecrafters.io/u/DeshErBojhaa)\
**Post date:** [February 18, 2025, 11:39am UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897/3 "2025-02-18T11:39:07Z")

</div>

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

```auto
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`

```auto
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'

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [February 18, 2025, 11:53am UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897/4 "2025-02-18T11:53:51Z")

</div>

> 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?

> **[Large files found - CodeCrafters](https://docs.codecrafters.io/troubleshooting/large-files)**
>
> Instructions on resolving error related to large files

Let me know if you need further assistance!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [February 23, 2025, 2:40pm UTC](https://forum.codecrafters.io/t/unexpected-disconnect-while-reading-sideband-packet/4897/7 "2025-02-23T14:40:53Z")

</div>

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