• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Content Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Ben McMahan
    Ben McMahan
    7,316 Points

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

    Posted February 16, 2022 4:17pm by Ben McMahan
    Ben McMahan
    7,316 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,197 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,197 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,757 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,757 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,004 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,004 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Linking Around the Application

    1 Answer

  • Lewis Marshall
    Lewis Marshall
    22,672 Points

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

    Posted June 4, 2020 2:21pm by Lewis Marshall
    Lewis Marshall
    22,672 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
    Full Stack JavaScript Techdegree Graduate 24,284 Points

    Goodbye button no longer working

    Posted November 1, 2019 6:28pm by Jorge Lopez
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Lopez
    Full Stack JavaScript Techdegree Graduate 24,284 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,232 Points

    The Next card link

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

    32 Answers

  • Cory Wallace
    Cory Wallace
    13,418 Points

    This doesnt work

    Posted February 17, 2018 9:05pm by Cory Wallace
    Cory Wallace
    13,418 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,413 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,413 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

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.