Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
The last test ( adding from, to and limit parameters)of this project is failing. I have been trying for the entire day to make it pass. My program seems to be fine. I have tested the program for the past hour but freecodecamp’s test says it’s wrong.

Using a bit of logging I was able to get Fcc test’s request which is
screesdfsn
this is original log array


as you can see my output clearly matches the query yet my tests are failing. I am pretty sure that i delivered the output in the correct format because all other tests passed except this one.

Your project link(s)

solution: boilerplate-project-exercisetracker (1) - Replit
https://boilerplate-project-exercisetracker-1.sourdragon.repl.co

Link to the challenge:

Your limit=1 response is returning an array with two objects.

The limit condition you have is inside the to/from condition (both will not be met).

api/users/63962cde29352ff6608463c9/logs?from=1989-12-31&to=1990-01-04

api/users/63962cde29352ff6608463c9/logs?limit=1

Thank you so much! :grinning:

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