Weird bugs in 4th test, exercise tracker

After I deployed my project, I had the same results in every and each part of this test: exercise tracker, making each post verb as it’s in the website, and each get verb, nevertheless, I got weird bugs:



[TypeError: Cannot read properties of undefined (reading ‘description’)]
[TypeError: Cannot read properties of undefined (reading ‘duration’)]
[TypeError: Cannot read properties of undefined (reading ‘date’)]

what would be the solution, in human testing, I believe that my project has the same results, and I even made a network in my browser console responses with the same data as the testing website provided by our mentors: here

We need to see your code. Post your Replit or a GitHub repo.

solved via debugging!

I changed my code to console each error and found the bug because they were not providing the correct printed error, which was by invoking _id via params, and I was only having the code to test the “:_id” req.body, which was dummy, and consumed half a day figuring it out😀

Thanks for trying to help out! @lasjorg