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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application
    • Close
  • 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 on Nov 13, 2023 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 on Feb 16, 2022 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 on Jul 23, 2021 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 on Nov 14, 2020 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 on Aug 6, 2020 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 on Jun 4, 2020 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 on Mar 17, 2020 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 on Nov 23, 2019 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 on Nov 1, 2019 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 on Sep 23, 2019 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 on Feb 16, 2019 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 on Dec 16, 2018 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 on Jul 16, 2018 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 on Jul 6, 2018 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 on Jun 13, 2018 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 on Jun 3, 2018 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 on Mar 30, 2018 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 on Feb 17, 2018 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 on Sep 16, 2017 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 on Sep 16, 2017 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 on Aug 31, 2017 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 on Jul 14, 2017 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 on Jun 26, 2017 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.