Tell us what’s happening:
I restart the server by doing ctrl+c and re-run node server.js on the server terminal, and run curl http://localhost:3001/hello on the client terminal as the test asked me to do but still cannot pass test 20. Server side logging /hello correctly in the screenshot I attached below. Is it possible if the test
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Challenge Information:
Build a Web Server - Build a Web Server
GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-build-a-web-server/e050e8ccbfc80e1a3561f787.md at main · freeCodeCamp/freeCodeCamp · GitHub
ILM
September 10, 2026, 6:39am
2
you can keep an eye on this issue, once it is closed update your clone and it should work. You can go to the next step for now using the arrows at the top
opened 08:50PM - 01 Sep 26 UTC
Step 20 of Build a Web Server can reject the instructed command even when the se… rver responds correctly.
## Reproduction
1. Complete Step 19 so that the server calls `response.end(request.url)`.
2. Restart the server with `node server.js`.
3. In another terminal, run:
```sh
curl http://localhost:3001/hello
```
4. Click Run Tests.
## Actual behavior
The test requires the exact substring `curl http://localhost:3001/hello` in `__helpers.getTemp()`. `getTemp()` reads `.logs/.temp.log`, which records raw terminal input. Terminal control sequences can split the command, so the substring assertion fails even though the command was run and the server returns a response.
## Expected behavior
The instructed command should pass regardless of terminal escape sequences.
## Proposed fix
Use `__helpers.getLastCommand()` and `__helpers.parseCli()` to verify that the command is `curl` and that its arguments include `http://localhost:3001/hello`. Step 18 already uses this approach for a similar curl assertion.
This is a remaining instance of the raw-terminal-log failure reported in #12, which was closed by commit 27aae2ab82a3e8ad843ecd93f405053fc8b1b17a.
Affected source: https://github.com/freeCodeCamp/back-end-development-and-apis/blob/4a47aa0d6bc57011b7c51f4a40cbadbbe2d98fc9/curriculum/locales/english/build-a-web-server.md#L600-L613
Forum report: https://forum.freecodecamp.org/t/build-a-web-server-build-a-web-server/799172