Back End Development and APIs Projects - Exercise Tracker

More than 10 hours have been spent on this project. I checked all the tests one by one very carefully, everything was tested fine on my local host, but it doesn’t allow me to pass the test.

Will anyone want to be my life saver?

Your project link(s)

solution: https://replit.com/@robbinluo/boilerplate-project-exercisetracker-2

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

Still, you need to tell what errors / messages are showing when you run the tests and submit in the Replit - messages from node console, browser console and from the test result.

From your Replit, for the GET request route app.get('/api/users/:_id/logs' ..., I noted that the statement if (!foundUser) { ... needs to be before the code const filteredLog = foundUser.log.filter(log => {.... It is not just correct coding, but, it may not be the reason for the tests to be failing.

I saw that as well, but no error when I run the same code locally. So what’s the next step when we get the different results? I saw that error message sometimes as well, but I don’t know how to fix it.

You need to post here what error messages you are seeing (so that someone can suggest resolutions).

The error you mentioned above.

in local host, I tested it with all different scenarios and compare the result with the sample, all same result. Evey the sequence of different keys I fxied to match the result of the sample.

no error when test it locally.