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

GIFT AKARIS
GIFT AKARIS
4,383 Points

HTTP error

AM not what these question is all about, I got the right answer but still getting an error

app.js
const https = require('https');

https.get('https://teamtreehouse.com/chalkers.json/');

2 Answers

GIFT AKARIS
GIFT AKARIS
4,383 Points

I think worked now , I dont why I was invalid responses.

Thanks for your Kris and Adam

const https = require('https');

https.get('https://teamtreehouse.com/chalkers.json')

You don't need a forward slash at the end of your string

GIFT AKARIS
GIFT AKARIS
4,383 Points

Thanks Kris

Ive tried both it is still not validating

His recommendation didn't work? Paste in the other version you tried.