Serve JSON on a Specific Route solution not being accepted

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

So I have the solution running locally on my computer just like it says in the hint. The problem is when I submit the solution, I get an error saying that I haven’t solved the exercise. Is there a glitch with this exercise, or is there something I’m totally missing?

Your project link(s)

solution: http://localhost:3000/json

Your browser information:

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

Challenge: Serve JSON on a Specific Route

Link to the challenge:

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can’t submit a link to ‘localhost’. You need to have this app hosted somewhere.

Really? Because so far, I’ve been submitting all my solutions from the localhost and haven’t had any problems.

Working on these challenges will involve you writing your code using one of the following methods:

  • Clone this GitHub repo and complete these challenges locally.
  • Use our Replit starter project to complete these challenges.
  • Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.

When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the Solution Link field.

Submit it without the /json path.

1 Like

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