Try Mentor AI — Free Pilot! Get instant, personalized help while you learn. Be among the first to explore it and shape what comes next. JOIN NOW

🤑 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
      • • Vibe Coding
  • Rey Serantes
    Rey Serantes
    5,900 Points

    I still get a 301 error. Obviously folks have encountered this before. Does anyone have a workaround for this issue?

    Posted January 20, 2017 4:10pm by Rey Serantes
    Rey Serantes
    5,900 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • matthewshear
    matthewshear
    9,229 Points

    I've followed this video line for line and, if run in the workspace, it returns a statusCode of 301 and stops.

    Posted November 9, 2016 3:11pm by matthewshear
    matthewshear
    9,229 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    2 Answers

  • Asaf Tzarfaty
    Asaf Tzarfaty
    3,740 Points

    Getting an error in the console.

    Posted November 4, 2016 9:13am by Asaf Tzarfaty
    Asaf Tzarfaty
    3,740 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Nadeem Ahmed
    Nadeem Ahmed
    10,125 Points

    404, Body not found error

    Posted September 25, 2016 11:23am by Nadeem Ahmed
    Nadeem Ahmed
    10,125 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Trixi Turny
    Trixi Turny
    1,100 Points

    Nothing working except statusCode

    Posted September 22, 2016 1:13pm by Trixi Turny
    Trixi Turny
    1,100 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • graemehunt
    graemehunt
    6,577 Points

    Hi all, please help, I'm really confused by a reference error: response is not defined -

    Posted September 16, 2016 7:17am by graemehunt
    graemehunt
    6,577 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points

    Getting a 301 error

    Posted September 13, 2016 10:22pm by Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points

    Having trouble with the "Getting the Response Body" video. My workspace doesn't come return the body.

    Posted August 26, 2016 12:31am by Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Philip Rurka
    Philip Rurka
    8,633 Points

    undefined body variable

    Posted July 28, 2016 3:31pm by Philip Rurka
    Philip Rurka
    8,633 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Rhett Herring
    PLUS
    Rhett Herring
    Courses Plus Student 11,023 Points

    I cannot seem to find why this is not running

    Posted June 14, 2016 8:31am by Rhett Herring
    Rhett Herring
    Courses Plus Student 11,023 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Nina Kozlova
    Nina Kozlova
    11,602 Points

    statusCode 301

    Posted April 17, 2016 2:57pm by Nina Kozlova
    Nina Kozlova
    11,602 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    4 Answers

  • Mariusz Dabrowski
    Mariusz Dabrowski
    6,132 Points

    Response chunk not what is expected

    Posted March 16, 2016 11:03pm by Mariusz Dabrowski
    Mariusz Dabrowski
    6,132 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Abi Houghton
    Abi Houghton
    111 Points

    node.js

    Posted March 8, 2016 10:24am by Abi Houghton
    Abi Houghton
    111 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    0 Answers

  • Jeffrey Davidson
    Jeffrey Davidson
    26,147 Points

    Nodejs Basics - Profile (Moved Permanately)

    Posted February 26, 2016 1:34pm by Jeffrey Davidson
    Jeffrey Davidson
    26,147 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Thomas Katalenas
    Thomas Katalenas
    11,033 Points

    Unexpected end of input

    Posted February 22, 2016 11:16pm by Thomas Katalenas
    Thomas Katalenas
    11,033 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • weylin wagnon
    weylin wagnon
    2,857 Points

    I keep seeing the message "BODY: not found" i have fixed the https issue, but it still doesnt work

    Posted February 17, 2016 9:37pm by weylin wagnon
    weylin wagnon
    2,857 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Matt Yost
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Matt Yost
    Full Stack JavaScript Techdegree Student 13,976 Points

    BODY: NaN

    Posted January 27, 2016 10:57pm by Matt Yost
    .a{fill-rule:evenodd;}techdegree
    Matt Yost
    Full Stack JavaScript Techdegree Student 13,976 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    2 Answers

  • Samarth Shrivastav
    PLUS
    Samarth Shrivastav
    Courses Plus Student 3,285 Points

    Body not showing up

    Posted December 16, 2015 4:13pm by Samarth Shrivastav
    Samarth Shrivastav
    Courses Plus Student 3,285 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • evanfiddler
    evanfiddler
    22,275 Points

    Is anyone else get an http response code 301?

    Posted October 28, 2015 11:48am by evanfiddler
    evanfiddler
    22,275 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    4 Answers

  • Sean Henderson
    Sean Henderson
    15,413 Points

    Not seeing any out from console.log(chunk)

    Posted October 23, 2015 11:02pm by Sean Henderson
    Sean Henderson
    15,413 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    4 Answers

  • Ruxandra Chirea
    Ruxandra Chirea
    12,764 Points

    Why is it not necessary for the first callback to return the body?

    Posted October 15, 2015 1:45pm by Ruxandra Chirea
    Ruxandra Chirea
    12,764 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Christina Gardner-McCune
    Christina Gardner-McCune
    850 Points

    Trouble getting Workspaces to connect to server

    Posted August 7, 2015 3:00am by Christina Gardner-McCune
    Christina Gardner-McCune
    850 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Floyd Orr
    Floyd Orr
    11,723 Points

    I get stuff like:app.js:at objecct.Module._extensions..js (module.js:474:10) but no error code. My code is not working?

    Posted April 19, 2015 5:44pm by Floyd Orr
    Floyd Orr
    11,723 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    2 Answers

  • daniwao
    daniwao
    13,125 Points

    Response BODY not found, 404

    Posted April 1, 2015 8:13pm by daniwao
    daniwao
    13,125 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Wade M
    Wade M
    7,256 Points

    Getting response body - Body not found? Node.js Basics

    Posted March 21, 2015 5:57am by Wade M
    Wade M
    7,256 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • William Ma
    PLUS
    William Ma
    Courses Plus Student 1,659 Points

    When I launch my code, i end up with an "html" body rather than what should be displayed.

    Posted February 2, 2015 10:08pm by William Ma
    William Ma
    Courses Plus Student 1,659 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

  • Cindy L Francies
    Cindy L Francies
    13,318 Points

    I'm having a problem with Getting the Response Body.

    Posted January 18, 2015 5:39pm by Cindy L Francies
    Cindy L Francies
    13,318 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    9 Answers

  • Zakher Masri
    Zakher Masri
    4,415 Points

    How can I copy the result in the console?

    Posted December 30, 2014 6:40pm by Zakher Masri
    Zakher Masri
    4,415 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    1 Answer

  • Robert Icona
    PLUS
    Robert Icona
    Courses Plus Student 1,351 Points

    console.log('BODY:' + chunk) and console.log(chunk)... The difference

    Posted December 17, 2014 9:19pm by Robert Icona
    Robert Icona
    Courses Plus Student 1,351 Points
    • JavaScript
    • Node.js Basics (2014)
    • Building a Command Line Application
    • Getting the Response Body

    3 Answers

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.