APIs and Microservices Projects - Exercise Tracker error in test case 3

I have a problem with the test case number 3

I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.

and this my response when I add a new exercise

    "userId": "5eee84cb507e891d4edebeaa",
    "description": "test",
    "duration": 45,
    "date": "Sat Jun 20 2020",
    "username": "fcc_test_15926898671"

my live code if you would test it out: link


I believe the test looks for an “_id” not a “userId”. :slight_smile:

1 Like

Thanks, a lot sir you really made my day, I hope if you edit it in the official example because it is written userId not _id