Tell us what’s happening:
Describe your issue in detail here.
Help please I cannot pass the project because of the exercise and log requirement keeps failing

Your project link(s)


Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

In your route POST '/api/users/:_id/exercises', you access the _id from the request body. But the _id is only in the request body if the “Add exercises” form is used to make the request. If you fix this, only one, unrelated, test will fail.

!Note: You added your actual mongo connection string inside the code. So everybody who sees this code can now access your database. Which might not seem like a big issue for testing purposes, but should really be avoided. In replit you can add a secret in the Secrets tab which can then be accessed in your code with process.env['secret-key'].

1 Like

thanks so much this really solved all my problems

1 Like

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