Exercise Tracker response broken?

The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.

The response returned from this route, matches the exercise fields added but gives and X, as It shouldn’t

Returned json:

username: [redacted]
_id: [redacted]
description: “test”
duration: 60
date: “2022-04-18T22:00:00.000Z”

It is sorted but doesn’t work, any solutions?

Challenge: Exercise Tracker

Link to the challenge:

Do you want to post a link to the code? Duration has to be a Number type so sometimes that is the issue.

The date has to be formatted a certain way, also, that may be the issue.

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