# \[HTTP server\] How to pass the first stage? remote: \[tester::#AT4\] Looks like your program has terminated. A HTTP server is expected to be a long-running process. remote: \[tester::#AT4\] Test failed

**URL:** <https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [July 15, 2025, 7:44am UTC](https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534 "2025-07-15T07:44:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkrmarthala](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/pkrmarthala/32/14473_2.png) [@pkrmarthala](https://forum.codecrafters.io/u/pkrmarthala)\
**Post date:** [July 15, 2025, 7:44am UTC](https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534/1 "2025-07-15T07:44:28Z")

</div>

Checklist:

1. ✅ or ❌: I’ve uncommented the code.
2. ✅ or ❌: I’ve saved the changes.
3. ✅ or ❌: I’ve run the git commands:

```auto
git commit -am "[seeking help on forum]"
git push origin master

```

* * *

Here’s a screenshot showing the output from running the Git commands:

[Attach screenshot here]

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/3/3b8e13a896084cc4aabd80ee95a6888f21363a76.png)

[Share other details here]  
Even after running the app and the HTTP server is started, I am getting the error log

remote: [tester::#AT4] Looks like your program has terminated. A HTTP server is expected to be a long-running process.  
remote: [tester::#AT4] Test failed

Is this expected behaviour or something different?

---

<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:** [July 15, 2025, 10:44am UTC](https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534/3 "2025-07-15T10:44:49Z")

</div>

Hey @pkrmarthala, I couldn’t find any submissions under your account. If you’re using a different account, feel free to share the username so I can take a look.

---

<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:** [July 22, 2025, 6:23pm UTC](https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534/4 "2025-07-22T18:23:54Z")

</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:** [July 27, 2025, 6:24pm UTC](https://forum.codecrafters.io/t/http-server-how-to-pass-the-first-stage-remote-tester-at4-looks-like-your-program-has-terminated-a-http-server-is-expected-to-be-a-long-running-process-remote-tester-at4-test-failed/13534/5 "2025-07-27T18:24:34Z")

</div>

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