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 Node.js Basics 2017 Building a Command Line Application Capturing Command Line Arguments

Erwan EL
Erwan EL
7,669 Points

Not updated profiles

Nothing to do with the code which is working fine but why in my case the profiles are not updated into the node prompt. I actually have more points in my treehouse account.

2 Answers

Steven Parker
Steven Parker
217,443 Points

The forum is a great place to get help from other students, but may not be the most expedient (or even certain) way to contact the staff.

For account issues, contact the staff directly as described on the Support page.

Nate Baker
Nate Baker
17,247 Points

Steven -

I actually wonder if this is a code question. I was running into the same problem. No matter the username I passed as an argument, I always received "(username) has 90 total badge(s) and 41 points in JavaScript"

This was simply an oversight as I was not interpolating username in the https GET request.

const request = https.get(`https://teamtreehouse.com/username.json`, response => ...

I should have interpolated username and in so doing the GET request should read:

const request = https.get(`https://teamtreehouse.com/${username}`, response => ...

After updating this, I received the correct badge count and JavaScript points.

Just a heads up for anyone running into the same issue.

Steven Parker
Steven Parker
217,443 Points

Someone was being funny when they created an account named "username". They might not have realized the potential for confusion that had (or maybe they did!).