Exercise Tracker Project Test Not Passing Despite Identical Output

Tell us what’s happening:
I’m currently working on test 4 (Posting to “/api/users/:_id/exercises”) and for some reason, the test will not pass despite my responding json object being identical to the example except for my id system being significantly more simple (The test still inputs the correct ID’s so presumably this not the problem). I’ve logged just about every part to make sure i am not missing some specific use case they are checking (which I initially was) and I am completely stumped.

Your project link(s)

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36

Challenge: Exercise Tracker

Link to the challenge:

Im now also failing test 7 despite having a functioning output that works for the test cases used. I assume this is somehow related to failing test 4 but again, I am completely stumped as to what my issue is. Data types and post outputs match that of the example website so any advice on where to look to find what may be causing my test to fail would be greatly appreciated.

Hello there,

I suggest you dig through the requests, as they will give you more insight as to issues:

Example: With a limit of 1, you are returning 2 records…

Hope this helps

1 Like

Ahhhh i forgot i nested my solution for limit within the conditional for a for/to value. Thats passed me for test 7 so thank you very much :slight_smile: now down to test 4…
edit: The issue with test 4 was ID’s being random numbers instead of mongoose objectID’s, got the project to pass now :slight_smile:

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