JavaScript Node.js Basics 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

Adam N
Adam N
62,464 Points

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