Bug: Problem with Making Requests


#1

I am doing the Firebase API part of How to Use APIs with Javascript. In 5, making a request, I cant move past this section because it keeps telling me, “Oops, try again. Did you console.log(xhr.statusText)?

This just doesnt seem right so I think there is a bug with this exercise:

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

anyone else having this problem, I have googled for answers etc, it all seems to be a problem with codecademy unable to process console.log on exercises…maybe?


#2

Yeah! Have the same problem. Didn’t find any answer here on forums yet.


#3

I used another browser on a different computer, and it worked…


#4

I had the same problem while doing this exercise in Google Chrome. I switched to Firefox and used the same code and I passed.

Could there be a possible Chrome error?


#5

Same error here. Works in Firefox, not Chrome.


#6

It doesn’t work in safari either


#7

Same problem here on Chrome and Firefox.


#8

I explained it here:

Requests

and here:

Broken tutorial

But this tutorial is the old learning environment, there is a reason its hidden from the main site. I would advise against taking this course, given you might run into more bugs. Please visit the main site and take one of the supported courses


#9

If you console log ‘OK’ instead you can get past this screen


#10

Still getting error on today


#11

#12

The course is outdated and broken, workarounds are provided. Use them, if you still have questions, you can make a new topic, not hijack one. See guidelines