Tell us what’s happening:
It seems I cannot get tests #10 to #15 to pass. There is an issue with my count and log attributes, even though I always see them present in the responses.
I checked the Network tab while I run the tests and everything seems to be fine. What am I missing?
Your project link(s)
solution: https://replit.com/@abraomukas/freecodecamp-exercise-tracker
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Challenge: Back End Development and APIs Projects - Exercise Tracker
Link to the challenge:
im getting a 404 error for this repl link…
This is the correct link . Sorry!
/api/users/:_id/logs
is returning an empty array.
{"_id":"63d7dc2f1fcccbdbec8f56c4","username":"fcc_test_16750909904","count":0,"log":[]}
The response from /api/users/:_id/exercises
that happens before the /api/users/:_id/logs
is returning this.
{"username":"fcc_test_16750913840","description":"test","duration":60,"date":"Invalid Date","_id":"63d7ddb94220ffe6d031e4ad"}
You have this in your code if (date === '')
I would suggest you log out date
to make sure your assumption about it is correct (hint, it is not).
Lesson learned. THANK YOU!
system
Closed
August 1, 2023, 6:52pm
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.