Exercise Tracker help

Hi everyone, ive been stumped on the exercise tracker project, particularly with the 4th and 5th test cases. I THINK I’m returning the correct json objects back to the response, but I’m not passing.

The link to my glitch project: https://glitch.com/edit/#!/gorgeous-general-rudbeckia

PLEASE if anyone could shed some light into why it’s not working, it would be greatly appreciated.

Your code so far

Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

Hello there,

When I input information in the app, it crashes.

Oh, thats weird because it works whenever I use it…

In your function to get the user exercise log, your code says:

app.get('/api/exercise/log/:userId', function(req, res){

The tests want you to be able to send a url with query parameters, for example:

[your-url].glitch.me/api/exercise/log?userId=5ed0819ee96b5e007ecabf9a&from=2020-03-03&to=2020-06-01&limit=4

You’ll need to add some code to account for the from, to, and limit parameters.