Errot with GET request


#1

Hi!

I get the following error when doing a GET request using the Http module of @angular/http:

EXCEPTION: Response with status: 0 for URL: null

The code is the following:

setInterval(() => {
this.http.get(“http://54.233.152.245:8000/”)
.map(res => res.json())
.subscribe(data => {
console.log(‘hello!’);
}
},1000);

Which can be the reason for that error?