Test failing yet when I open link in browser it seems right

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

When I visit the link in my browser it serves the json result but the tests are saying it didn’t pass.

Your project link(s)

solution: https://replit.com/@nkunzecaleb/boilerplate-expressjson

Your browser information:

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

Challenge: Serve JSON on a Specific Route

Link to the challenge:

it’s impossible to help you if you delete the replit

The code you have in the Replit isn’t for the challenge you linked to (Serve JSON on a Specific Route) but for the next challenge (Use the .env File). So I’m guessing you have already passed this one?

If not, the code you have now will always serve the uppercase response so it will fail this challenge as you are asked to serve {"message": "Hello json"}

https://replit.com/@nkunzecaleb/boilerplate-express

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