恐らく少し調べれば分かる事なのですが、20分くらい戸惑ったのでメモ...
エラー
this.http.get('http://hoge/fuga'.subscribe(data => {
console.log(data);
});
=>error Parsing
解決
this.http.get('http://hoge/fuga',{ responseType: 'text' }).subscribe(data =>
{
console.log(data);
});
@angular/common/httpは標準でJSONとしてパースしようとするので、json以外の時はresponseTypeを
指定する必要があるらしい.