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
  • 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,237 Points

    The Next card link

    Posted March 30, 2018 12:33am by Sean Flanagan
    Sean Flanagan
    33,237 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.

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