Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
Hi, i have a TypeError where my property duration, description, and date shows undefined plus when i use exercise tracker manually it shows :

{"error" : "invalid id"}

is there any solution for that? i couldn’t find it on the forum

Your project link(s)

code: boilerplate-project-exercisetracker - Replit

Your browser information:

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

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

Hello, I watched this YouTube video and it`s instructions are to use Heroku to get this api up and running, usually the case, but I cant understand this because the service is no longer free and you need to make an account first. Here is the url to the video out lining how to create a valid ID.

1 Like
const id = req.params[':_id'];

That isn’t the parameter name. The colon makes it a parameter in the route path but it isn’t part of the variable name.

1 Like

thanks. i change it and it solved

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