# \[C#\]\[Handle APIVersion Request #PV1\] Unexpected EoF

**URL:** <https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767>\
**Category:** Challenges\
**Tags:** challenge:kafka\
**Created:** [March 1, 2025, 9:03am UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767 "2025-03-01T09:03:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![someshwarrc](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/someshwarrc/32/5942_2.png) [@someshwarrc](https://forum.codecrafters.io/u/someshwarrc)\
**Post date:** [March 1, 2025, 9:03am UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/1 "2025-03-01T09:03:26Z")

</div>

I have gone over multiple code samples and have tweaked the code to properly respond with 23 bytes. All the previous steps are passing but I am getting the error

```bash
[tester::#PV1] error reading from connection: unexpected EOF
[tester::#PV1] Test failed

```

Need some help on this.

---

<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:** [March 2, 2025, 12:54pm UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/3 "2025-03-02T12:54:49Z")

</div>

Hey @someshwarrc, could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![someshwarrc](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/someshwarrc/32/5942_2.png) [@someshwarrc](https://forum.codecrafters.io/u/someshwarrc)\
**Post date:** [March 2, 2025, 6:58pm UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/5 "2025-03-02T18:58:47Z")

</div>

Please find the code at [codecrafters-kafka](https://github.com/someshwarrc/codecrafters-kafka)  
@andy1li

---

<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:** [March 10, 2025, 1:39am UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/6 "2025-03-10T01:39:20Z")

</div>

@someshwarrc, Looks like you’ve got past this stage. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

---

<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:** [March 17, 2025, 8:38am UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/8 "2025-03-17T08:38:52Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<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:** [March 22, 2025, 8:38am UTC](https://forum.codecrafters.io/t/c-handle-apiversion-request-pv1-unexpected-eof/5767/9 "2025-03-22T08:38:55Z")

</div>

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