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 trialErwan EL
7,669 PointsNot 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
231,236 PointsThe 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
17,247 PointsSteven -
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
231,236 PointsSomeone 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!).