Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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???