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 Node.js Basics 2017 Building a Command Line Application Making a GET Request with https

james mchugh
james mchugh
6,234 Points

says illegal token

I'm not sure what illegal token means. I wrote the code how I was showed in video. Unfortunately there is no review button for the challenges only on quizzes, so I guess my studies are on hold for an average of 24hr, since morning is the time to do coding and response time is usually after the morning hours.

app.js
const https = require('https');
 const request = https.get(`https://teamtreehouse.com/chalkers.json`);

1 Answer

Gabriel Plackey
Gabriel Plackey
11,064 Points

You look to be using upticks instead of quote marks on line 2 around the web address.

james mchugh
james mchugh
6,234 Points

Thanks for the advice. Yeah I noticed the instructor used upticks on his code inthe video. Thank you