Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:

Exercise tracker tests keep failing and I don’t know why !
the test #8 says :
The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.

here is what I respond :
{
username: ‘Dragon’,
description: ‘coussi coussa’,
date: ‘1736290800000’,
_id: ‘677dd6256578e2db85e8541a’,
duration: 5
}

and I don’t understand why test fail.
here is my gitpod : https://freecodecam-boilerplate-t0ahsnb9r56.ws-eu117.gitpod.io

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-t0ahsnb9r56.ws-eu117.gitpod.io

githubLink: https://3000-freecodecam-boilerplate-t0ahsnb9r56.ws-eu117.gitpod.io

Your browser information:

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

Challenge Information:

Back End Development and APIs Projects - Exercise Tracker

Your date doesn’t look correct.

Exercise example given:

{
  username: "fcc_test",
  description: "test",
  duration: 60,
  date: "Mon Jan 01 1990",
  _id: "5fb5853f734231456ccb3b05"
}

We can’t see your code. If you need more help, share the workspace as outlined on the challenge page.

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