Failed to execute 'send (Exercise 16)


#1

I just complete correctly again using:

// Add your code below this line!
var xhr = new XMLHttpRequest();

xhr.open("GET", "https://codecademy.com", false);

xhr.send();

// Add your code above this line!

console.log(xhr.status);
console.log(xhr.statusText);

But show me error failed to execute send? someone can help¿


#2

what exercise is this? Please share exercise url


#3

https://www.codecademy.com/de/courses/javascript-beginner-en-EID4t/3/2?curriculum_id=50ecb8d45f787a6332000042


#4

its the old learning environment, which is no longer supported, i would recommend upgrading to a supported course (see main site codecademy.com)

this exercise is indeed bugged, we can cheat it:

// Add your code below this line!
var xhr= new XMLHttpRequest();
xhr.open("GET", "https://www.codecademy.com",false);
xhr.send()

// Add your code above this line!

CC = {}
CC.printed = function(){
    return true;
}

console.log(xhr.status);
console.log(xhr.statusText);