JavaScript Node.js Basics Building a Command Line Application Making a GET Request with https

GIFT AKARIS
GIFT AKARIS
4,238 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

KRIS NIKOLAISEN
KRIS NIKOLAISEN
52,651 Points

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

GIFT AKARIS
GIFT AKARIS
4,238 Points

Thanks Kris

Ive tried both it is still not validating

adam n
adam n
57,283 Points

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

GIFT AKARIS
GIFT AKARIS
4,238 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')