Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Problem in beginning Node.js tutorial

The tutorial painstakingly builds a node JSON query upon the membership database at teamtreehouse using the form "membername".json to return badges and point totals.

Here's the most basic query:

const username = "somebody"; const request = https.get('https://teamtreehouse.com/${username}.json', response => {

response.on('data', data => {

  console.log('data: ', data.toString());                      

  });

)};

However the return is "data: not found" for any name submitted. I have initially tried the instructor's name, as in the tutorial, then other membership names used later, and then, in desperation, current account names pulled from code behind the message board.

Has there been a change in the storage location of .json data for the membership since this tutorial was posted???