title: "Unexpected end of JSON input" Angular 5
body: <p>When sending a GET request to API, I'm always getting an error (so the response will fall into the CATCH instead of TRY) even tough status is 200.</p>
  
  <p>Here is the request :</p>
  
  <pre><code>// Check if user exists at blur on email input authentication
  checkUserExists( platformId: string, email: string) {
      return this.http.get(checkUserExistsAPI + `/${platformId}/${email}`);
  }
  </code></pre>
  
  <p>As i'm using Angular 5, I took off the .map(res).</p>
  
  <p>And here is the function that uses the request :</p>
  
  <pre><code>// Verify if emails exists
  verifyEmail(email) {
      if (email) {
          this.authenticationService.checkUserExists( this.platformId, email )
              .subscribe(
                  (data: CheckEmailResponse) =&gt; {
                      console.log(data);
                  },
                  (error: CheckEmailResponse) =&gt; {
                      console.log(error);
  
                  }
              );
      }
  }
  </code></pre>
  
  <p>It will never console.log(data) as I'm always getting this error :</p>
  
  <pre><code>error:{
      error: SyntaxError: Unexpected end of JSON input at JSON.parse (&lt;anonymous&gt;) at XMLHttpRequest.onLo…, text: ""}
      headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}
      message:"Http failure during parsing for http://API.com"
  name:"HttpErrorResponse"
  ok:false
  status:200
  statusText:"OK"
  </code></pre>