• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
    • 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
  • <noob />
    <noob />
    17,042 Points

    Why use try/catch in ASYNC code?

    Posted September 1, 2019 7:31pm by <noob />
    <noob />
    17,042 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    2 Answers

  • Julianna Kahn
    Julianna Kahn
    20,700 Points

    I enter https://teamtreehouse.com/chalkers.json in Chrome address bar, it returns correct data but not in json format.

    Posted May 24, 2019 6:58pm by Julianna Kahn
    Julianna Kahn
    20,700 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    2 Answers

  • Michael Williams
    PRO
    Michael Williams
    Pro Student 8,059 Points

    Why don't I need to give my printError function a parameter?

    Posted January 23, 2019 3:42am by Michael Williams
    Michael Williams
    Pro Student 8,059 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    6 Answers

  • Ahmed SanaUllah
    Ahmed SanaUllah
    640 Points

    Why is response the parameter for .get() when the function expects a response back? Shouldn't it be req or request?

    Posted June 13, 2018 8:19pm by Ahmed SanaUllah
    Ahmed SanaUllah
    640 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    2 Answers

  • Aayush Mitra
    Aayush Mitra
    24,889 Points

    Aren't we just using vanilla Javascript?

    Posted December 27, 2017 11:12pm by Aayush Mitra
    Aayush Mitra
    24,889 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    1 Answer

  • Jeffrey Kwok
    Jeffrey Kwok
    3,006 Points

    Trying to parse JSON file in node js but I get a "Cannot read property 'length' of undefined" error

    Posted November 8, 2017 5:09pm by Jeffrey Kwok
    Jeffrey Kwok
    3,006 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    3 Answers

  • Corey Hayden
    Corey Hayden
    11,717 Points

    Why no argument for 'printError' in line 40, in https.get? >> request.on('error', printError);

    Posted April 13, 2017 5:12pm by Corey Hayden
    Corey Hayden
    11,717 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    1 Answer

  • Jiho Song
    Jiho Song
    16,469 Points

    What about next try syntax?

    Posted March 2, 2017 1:56am by Jiho Song
    Jiho Song
    16,469 Points
    • JavaScript
    • Node.js Basics
    • Handling Errors in Node
    • Handling Parsing Errors with try and catch

    1 Answer

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

Treehouse Logo
Our mission is to bring affordable technology education to people everywhere in order to help them achieve their dreams and change the world.
Company
Careers
Contact
Library
Tracks
Community
Stories
Perks
Affiliate Program
Treehouse for Libraries
Topics
HTML
CSS
Design
JavaScript
Ruby
View all 24 Topics
Tracks
Front End Web Development
Full Stack JavaScript
Beginning Python
UX: Interaction Design
Digital Literacy
View all 42 Tracks
  • Twitter
  • YouTube
  • FaceBook
  • LinkedIn
  • Instagram
  • About Treehouse
  • Blog
  • Shop
  • Privacy Policy
  • Terms & Conditions
  • © 2021 Treehouse Island, Inc.