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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Charlie Roberts
    Charlie Roberts
    12,014 Points

    http://localhost:3000/cards not loading but I can see the sides of the cards. Not sure where I went wrong?

    Posted November 13, 2023 6:43pm by Charlie Roberts
    Charlie Roberts
    12,014 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Ben McMahan
    Ben McMahan
    7,922 Points

    Bug? "Cannot set headers after they are sent to the client"

    Posted February 16, 2022 4:17pm by Ben McMahan
    Ben McMahan
    7,922 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Abbie Bowen
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Abbie Bowen
    Full Stack JavaScript Techdegree Graduate 16,210 Points

    Do you need to create a new route to randomize the cards?

    Posted July 23, 2021 7:44pm by Abbie Bowen
    .a{fill-rule:evenodd;}techdegree seal-36
    Abbie Bowen
    Full Stack JavaScript Techdegree Graduate 16,210 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    0 Answers

  • James Crosslin
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,882 Points

    A little cleaner solution

    Posted November 14, 2020 1:39am by James Crosslin
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,882 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Trevor Maltbie
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Trevor Maltbie
    Full Stack JavaScript Techdegree Graduate 17,021 Points

    A solution to handle invalid query string key 'side' value

    Posted August 6, 2020 2:24pm by Trevor Maltbie
    .a{fill-rule:evenodd;}techdegree seal-36
    Trevor Maltbie
    Full Stack JavaScript Techdegree Graduate 17,021 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Lewis Marshall
    Lewis Marshall
    22,673 Points

    My solution to handle invalid query string key 'side' value

    Posted June 4, 2020 2:21pm by Lewis Marshall
    Lewis Marshall
    22,673 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • matt Ammirati
    matt Ammirati
    7,716 Points

    if name block erases my hello.pug

    Posted March 17, 2020 11:07pm by matt Ammirati
    matt Ammirati
    7,716 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Casey Dixon
    Casey Dixon
    8,920 Points

    Scope and template data

    Posted November 23, 2019 10:36pm by Casey Dixon
    Casey Dixon
    8,920 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    0 Answers

  • Jorge Lopez
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Lopez
    Python Development Techdegree Graduate 35,350 Points

    Goodbye button no longer working

    Posted November 1, 2019 6:28pm by Jorge Lopez
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Lopez
    Python Development Techdegree Graduate 35,350 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Harry Mok
    Harry Mok
    16,629 Points

    Not Working

    Posted September 23, 2019 3:56am by Harry Mok
    Harry Mok
    16,629 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Karen Shea
    Karen Shea
    13,851 Points

    RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined Pretty sure the issue is in cards.js.

    Posted February 16, 2019 3:08am by Karen Shea
    Karen Shea
    13,851 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Jef Davis
    Jef Davis
    29,162 Points

    Redirect to 404 for non-existent card

    Posted December 16, 2018 9:07pm by Jef Davis
    Jef Davis
    29,162 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    3 Answers

  • Ismayil Aliyev
    Ismayil Aliyev
    18,560 Points

    Error: Cannot set headers after they are sent to client (for redirecting when there is no side variable)

    Posted July 16, 2018 2:38am by Ismayil Aliyev
    Ismayil Aliyev
    18,560 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Linus Johansson
    Linus Johansson
    12,469 Points

    getting this error message: RangeError: Invalid status code: undefined

    Posted July 6, 2018 9:06pm by Linus Johansson
    Linus Johansson
    12,469 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    3 Answers

  • Vincent Doyle
    Vincent Doyle
    18,208 Points

    The answer side doesn't link to the question.

    Posted June 13, 2018 3:26pm by Vincent Doyle
    Vincent Doyle
    18,208 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Martin Coutts
    Martin Coutts
    18,154 Points

    Invalid Status Code

    Posted June 3, 2018 9:10am by Martin Coutts
    Martin Coutts
    18,154 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    The Next card link

    Posted March 30, 2018 12:33am by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    32 Answers

  • Cory Wallace
    Cory Wallace
    14,313 Points

    This doesnt work

    Posted February 17, 2018 9:05pm by Cory Wallace
    Cory Wallace
    14,313 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    3 Answers

  • Peter Lu
    Peter Lu
    10,612 Points

    why is PUG so flexible?

    Posted September 16, 2017 1:33am by Peter Lu
    Peter Lu
    10,612 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Peter Lu
    Peter Lu
    10,612 Points

    res.redirect -- why do you need "/card" at the front?

    Posted September 16, 2017 1:20am by Peter Lu
    Peter Lu
    10,612 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    2 Answers

  • Reggie Williams
    STAFF
    Reggie Williams
    Treehouse Teacher

    Goodbye route in Linking around the application (end of express basics)

    Posted August 31, 2017 7:31pm by Reggie Williams
    Reggie Williams
    Treehouse Teacher
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    0 Answers

  • Jennifer Gerbl
    Jennifer Gerbl
    8,772 Points

    Forward instead of redirect in Express?

    Posted July 14, 2017 1:11pm by Jennifer Gerbl
    Jennifer Gerbl
    8,772 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    0 Answers

  • Shane Unger
    Shane Unger
    9,401 Points

    Code is correct and works, but I'm getting an error in the console

    Posted June 26, 2017 7:23am by Shane Unger
    Shane Unger
    9,401 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.