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

banner
Close banner
0 points
Submitted by Tim_229
over 10 years

parse api - training: xhr.status not working

HTTP Status Codes lesson not following through after correct answer is placed.

The right answer is var xhr = new XMLHttpRequest(); xhr.open(“GET”, “http://www.codecademy.com/doesnt_exist“, false); xhr.send(); // Add your code below! console.log(xhr.status);

…but the error keeps coming up: Oops, try again! Did you console.log(xhr.status)? …and I can’t continue with the lessons.

Answer 52125bc9f10c60eec6000036

6 votes

Permalink

I have done some additional research and you need to change the line stating xhr.open(“GET”, “http://www.codecademy.com/doesnt_exist“, false); to this new line: xhr.open(“GET”, “http://www.codecademy.com/doesntexist2“, false);

points
Submitted by liviodoublefang
over 10 years

4 comments

Tim_229 over 10 years

Bingo! Thanks for that tip. It worked.

liviodoublefang over 10 years

No problem my friend.

Perjan Duro over 10 years

thanks man

Morgan Polotan over 10 years

this worked, thanks!

Answer 52208051abf8212d40001ea9

4 votes

Permalink

The problem is that someone has created account with that url, so you will have response… and it will not show 404. try to open http://www.codecademy.com/doesnt_exist someone made a joke:)) fix to that, change any letter in url to make sure that it does not exist…

points
Submitted by Damian
over 10 years

3 comments

Abdul over 10 years

had a good laugh when I noticed this myself :))

João Mota over 10 years

oh snap! :)))

Morgan Polotan over 10 years

haha that’s funny

Answer 521259e4abf8216432000306

1 vote

Permalink

Yea, I am seeing the same thing. Must be some bad coding in the exercise because without looking at the hint I had exactly what you have.

points
Submitted by liviodoublefang
over 10 years

1 comments

Tim_229 over 10 years

I’ll let Eric Weinstein know….thx for confirming.