Tell us what’s happening:
Describe your issue in detail here.
couldn’t able to pass the limit test case.
Any help will be greatly appreciated.
Thank you.
Your project link(s)
solution: https://replit.com/@shiprabardhan/boilerplate-project-exercisetracker-3
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Challenge: Exercise Tracker
Link to the challenge:
Your POST exercise route is part of the problem. Logging the input and output there yields
req.body: {"description":"test","duration":"60"}
req.params: {"_id":"62676b6cf6036c05b2bb56a7"}
req.query: {}
{
username: 'fcc_test_16509448768',
description: 'test',
duration: 60,
date: 'Invalid Date',
_id: 62676b6cf6036c05b2bb56a7
}
during the tests; the spec doesn’t allow for an invalid date. That route is also failing when two records are made sequentially:
req.body: {"description":"test","duration":"60","date":"1990-01-03"}
req.params: {"_id":"62676c815b6e7c076c51c1eb"}
req.query: {}
exercise error
This is the second exercise record the tests send for checking the limit/from/to. The first very similar one is recorded; this one hits the exercise error path. Logging the error will help.
system
Closed
October 25, 2022, 4:02pm
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.