This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course

5 points
0af0a49893259b9623b7bba66a41e5c1?s=140&d=retro
Submitted by
Rene Rubio
about 2 years ago

Parse API, I have error but the solution is good

In Codecademy parse API with javascript step 5, in the console show a error but the solution is good...


ERROR

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.codecademy.com/'.


SOLUTION
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://www.codecademy.com/", false);
// Add your code below!
xhr.send();
console.log(xhr.status);
console.log(xhr.statusText);


1 vote

permalink

Same error for me.

263 points
Picture
Submitted by
Chappy Brandon
about 2 years ago