The test fail on correct input

I’m doing the Back End Development and APIs course, and i’m stuck in the third challenge of the Basic Node and Express section.

When I submit the link with the solution, the test on the challenge page simply denies my entry, stating “Your app should serve the file views/index.html” which I believe I did in a correct way.
I’ll drop a screenshot of my code so far, including the files included, the console and the preview of the live app

This is the Solution Link I’m providing:

To include the requested file, I created both the folder “views” and the file “index.html” manually within Replit.

Any help would be appreciated, thank you.

This is my browser info.
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Challenge: Serve an HTML File

Link to the challenge:

Did you start your project from the template? It does not appear you did or you would have already had a views folder and a public folder. You did not have to create those and those files contain what the test is looking for to validate you use the correct method.

1 Like

Now I see what I did wrong. When cloning the GitHub repository, I ended up cloning the one of the previous course.

I’ll start from scratch. Thank you for your time

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