# Problem Submitting

**URL:** <https://forum.codecrafters.io/t/problem-submitting/14754>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [August 12, 2025, 10:15pm UTC](https://forum.codecrafters.io/t/problem-submitting/14754 "2025-08-12T22:15:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinbg012](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kevinbg012/32/12845_2.png) [@kevinbg012](https://forum.codecrafters.io/u/kevinbg012)\
**Post date:** [August 12, 2025, 10:15pm UTC](https://forum.codecrafters.io/t/problem-submitting/14754/1 "2025-08-12T22:15:44Z")

</div>

I’m stuck on Stage #wy1

My solution is this, which looks almost the solutions provided in Code Examples, but I get error:

```go
package main

import (
	"bufio"
	"fmt"
	"net"
	"os"
	"strings"
)

// Ensures gofmt doesn't remove the "net" and "os" imports in stage 1 (feel free to remove this!)
var _ = net.Listen
var _ = os.Exit

func main() {
	l, err := net.Listen("tcp", ":6379")
	if err != nil {
		fmt.Println("Failed to bind to port 6379")
		os.Exit(1)
	}

	for {
		conn, err := l.Accept()
		if err != nil {
			fmt.Println(err)
			continue
		}

		go handleConnection(conn)
	}
}

func handleConnection(conn net.Conn) {
	defer conn.Close()

	scanner := bufio.NewScanner(conn)
	for scanner.Scan() {
		text := scanner.Text()

		if strings.TrimSpace(text) == "PING" {
			conn.Write([]byte("+PONG\r\n"))
		}
	}
}

```

Here are my logs:

```go
remote: [your_program] Logs from your program will appear here!
remote: [tester::#WY1] [client-1] $ redis-cli PING
remote: [tester::#WY1] [client-1] Received "PONG"
remote: [tester::#WY1] [client-1] > PING
remote: [tester::#WY1] write tcp [::1]:36870->[::1]:6379: write: broken pipe
remote: [tester::#WY1] Test failed (try setting 'debug: true' in your codecrafters.yml to see more details)
remote: 

```

---

<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:** [August 13, 2025, 9:11am UTC](https://forum.codecrafters.io/t/problem-submitting/14754/4 "2025-08-13T09:11:48Z")

</div>

Hey @kevinbg012, could you check if you’ve committed and pushed your latest code? It looks like the version on our server does not include your recent changes.

Could you try running `git status` and share the result?

You can also [upload your code](https://docs.codecrafters.io/features/publish-to-github) (from our server) to GitHub, and compare it with what’s on your local machine.

---

<div class="post-metadata">

**Author:** ![kevinbg012](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kevinbg012/32/12845_2.png) [@kevinbg012](https://forum.codecrafters.io/u/kevinbg012)\
**Post date:** [August 13, 2025, 11:46am UTC](https://forum.codecrafters.io/t/problem-submitting/14754/6 "2025-08-13T11:46:08Z")

</div>

Oh sorry, I wasn’t commiting all changes. Thanks for your help

---

<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:** [August 18, 2025, 11:46am UTC](https://forum.codecrafters.io/t/problem-submitting/14754/7 "2025-08-18T11:46:42Z")

</div>

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