Tell us what’s happening:
Describe your issue in detail here.
I am cannot find the issue with the failing test error here:
The response returned from POST /api/users/:_id/exercises will be the
user object with the exercise fields added.
When I send a POST request to create an exercise I get the following back as the response in Postman. It looks correct but there has to be something wrong somewhere in my code.
{
"_id": "641341277e3511cdd892f765",
"username": "Susan",
"description": "Swimming",
"duration": 15,
"date": "Sun Mar 19 2023"
}
Your project link(s)
project link: Exercise Tracker FCC - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Challenge: Back End Development and APIs Projects - Exercise Tracker
Link to the challenge: