Exercise Tracker seem to be working but returns errors

Tell us what’s happening:
These tests fail :

  • A GET request to /api/users/:id/logs will return the user object with a log array of all the exercises added.
  • The date property of any object in the log array that is returned from GET /api/users/:id/logs should be a string… Use the dateString format of the Date API.
  • You can add from , to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.

It looks on my side as if all the tests should pass :

  • my GET requests work and return a seemingly correct JSON with the log
  • the dates in the log are strings obtained with toDateString() and seem right
  • my own tests on limit, to and from seem to work

What’s wrong ???

Your project link(s)

solution: https://replit.com/@n0r314/boilerplate-project-exercisetracker

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0

Challenge: Exercise Tracker

Link to the challenge:

I found my error ! The exercises weren’t filtered correctly.
All set.

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