Stuck on Node and Express - Get Route Parameter Input from the Client

Tell us what’s happening:
No matter what i do, i can’t seem to pass the test.
I literally just copied the solution from the hint and it’s still not working.
Tried different browsers and computers.
I always get

// running tests
Test 1 : Your echo server should repeat words correctly
Test 2 : Your echo server should repeat words correctly
// tests completed

Your code so far

app.get("/:word/echo", (req, res) => {
  const word = req.params.word;
    echo: word

I tried removing the Object Destructuring from the original solution.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Get Route Parameter Input from the Client

Link to the challenge:

could you try:

app.get("/:word/echo", (req, res) => {
    res.json({ echo: req.params.word })

I wanna see if it works for you then i’ll explain my thinking

Tried it already, and tried it again now.
still does not work :frowning_face:

Problem is also happening to me in " Get Query Parameter Input from the Client"
I did the exact same thing as in the instruction.
Might be an issue in my environment?

Solved it.
I cloned the Boilerplate again and wrote the code for task 8 onwards only.

1 Like

Sorry for the late reply. Glad you fixed it.

I also had to comment out the code from the previous challenges. The code was working but it was very slow and the test was timing out. It could just have been an issue with, though.