This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Djurre
over 8 years

Network error 1/19

in both 1/19 and 5/19 I keep on getting the error: NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’: Failed to load ‘http://www.codecademy.com/‘. with the code:

var xhr = new XMLHttpRequest(); xhr.open(“GET”, “http://www.codecademy.com/“, false); xhr.send(); console.log(xhr.status); console.log(xhr.statusText);

Answer 55a6fd9b9113cb96fb000164

3 votes

Permalink

change the “http” part to “https” such that the URL is

https://www.codecademy.com
points
Submitted by Michael
over 8 years

2 comments

Djurre over 8 years

The ‘s’ did the trick. Thanks a lot !

dharris1893 over 8 years

I wonder why it’s not automatically put in the lesson, or are we expected to know to change the http to https? The API section did say to look into some of Codecademy’s JavaScript section. I guess I may have to look into it.