Test keeps failing on res.send("Hello Express")

Tell us what’s happening:
Describe your issue in detail here.

I am serving “Hello Express” to the console, but the test keeps failing. Why?

Your project link(s)

solution: https://replit.com/@dmikes/boilerplate-express

liveapp: https://boilerplate-express.dmikes.repl.co

Your browser information:

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

Challenge: Start a Working Express Server

Link to the challenge:

I just found it. Apparently switching off Brave’s ad-blocker worked.

No it is not that, replit does not always refresh correctly. I changed the code, yet the old response appears. Refreshing everything makes no difference.

It doesn’t have live update, which mean you need to manually update the server.
(You need to stop and re-run the repl)

Oh is that it! Thank you so much. I was so used to liveserver that I forgot about this.

And with Glitch? There it seems to update, but the test fails. I am submitting this url for the assignment with environment variable MESSAGE_STYLE=uppercase:
https://sassy-sincere-dentist.glitch.me/json
The response is working fine, but the test fails

the test tolds you to serve a text Hello Express not a JSON object

res.send('Hello Express')

Not

res.json({message:"HELLO JSON"})
1 Like

thank you very much for your response

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