Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Mitchell Wintrow
    Mitchell Wintrow
    4,380 Points

    getting 404 error when I use `'/'` instead of `'/cards'` and `'/cards:id'` doesn't work nor does `cards[req.params.id]`

    Posted November 5, 2021 5:03pm by Mitchell Wintrow
    Mitchell Wintrow
    4,380 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • William Ray Noble
    William Ray Noble
    22,190 Points

    After watching the video and reading the other questions, still cant resolve 404 error

    Posted July 10, 2020 5:40pm by William Ray Noble
    William Ray Noble
    22,190 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    1 Answer

  • jlampstack
    jlampstack
    23,932 Points

    How can we have the first ID display as 1 instead of 0?

    Posted June 21, 2020 6:27pm by jlampstack
    jlampstack
    23,932 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • Viola Chyu
    Viola Chyu
    6,432 Points

    How exactly do you include JSON in Node?

    Posted May 10, 2020 5:48pm by Viola Chyu
    Viola Chyu
    6,432 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    1 Answer

  • Michael Williams
    PLUS
    Michael Williams
    Courses Plus Student 8,059 Points

    Does the URL parameter always have to be named 'id'?

    Posted January 30, 2019 3:07am by Michael Williams
    Michael Williams
    Courses Plus Student 8,059 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • Ceil-Ian Maralit
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points

    Request object params property

    Posted September 18, 2018 8:20am by Ceil-Ian Maralit
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    1 Answer

  • Maria Te
    Maria Te
    8,521 Points

    I have an error when I type localhost:4000/cards:0

    Posted August 1, 2018 10:57pm by Maria Te
    Maria Te
    8,521 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • benjaminfarnham
    benjaminfarnham
    8,055 Points

    Not getting 404 error when I use a route with an ID that doesn't exist.

    Posted April 18, 2018 2:14am by benjaminfarnham
    benjaminfarnham
    8,055 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    Cannot GET /cards

    Posted March 29, 2018 1:43am by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    4 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    getting this error RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined when going to cards.

    Posted March 10, 2018 1:50pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • Leonard Morrison
    PLUS
    Leonard Morrison
    Courses Plus Student 32,914 Points

    I'm getting a 404 on the Cards page

    Posted February 12, 2018 4:26am by Leonard Morrison
    Leonard Morrison
    Courses Plus Student 32,914 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    1 Answer

  • Kevin Becerra
    Kevin Becerra
    14,243 Points

    Only able to get page to load by using whole route when I should be able to use '/:id'

    Posted December 21, 2017 2:43am by Kevin Becerra
    Kevin Becerra
    14,243 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    1 Answer

  • Akshit Jindal
    Akshit Jindal
    1,341 Points

    why const { data }=require('./data/flashcardData.json') doesn't work?

    Posted December 10, 2017 7:01pm by Akshit Jindal
    Akshit Jindal
    1,341 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    2 Answers

  • Brian Foley
    Brian Foley
    8,440 Points

    still getting a 404 page

    Posted September 22, 2017 12:35pm by Brian Foley
    Brian Foley
    8,440 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    3 Answers

  • Reid Young
    PLUS
    Reid Young
    Courses Plus Student 14,209 Points

    Now what about a route without an id?

    Posted July 29, 2017 9:31pm by Reid Young
    Reid Young
    Courses Plus Student 14,209 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Using Data and Route Parameters

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord