title: Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined at
body: <p>I have an Angular application and I'm using JSONP as well.</p>
  
  <p>This is my service:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { Http, Response, Headers, RequestOptions } from '@angular/http';
  import { Observable } from 'rxjs/Observable';
  import { Page } from './page';
  import 'rxjs/add/operator/map';
  import 'rxjs/add/operator/catch';
  import { Jsonp } from '@angular/http';
  
  @Injectable()
  export class ProductService {
  
      private urlPage = 'http://api.zanox.com/json/2011-03-01/products?q=iphone&amp;connectid=XXXXXXXXXXXX&amp;programs=12011&amp;callback=JSONP_CALLBACK';
  
      constructor(private _jsonp: Jsonp) { }
  
      getPage(): Observable&lt;Page&gt; {
          return this._jsonp.get(this.urlPage).map(this.extractData).catch(this.handleError);
      }
  
      private extractData(res: Response) {
          let body = res.json();
          return body || {};
      }
  
      private handleError(error: any) {
          let errMsg = (error.message) ? error.message :
              error.status ? `${error.status} - ${error.statusText}` : 'Server error';
          console.error(errMsg);
          return Observable.throw(errMsg);
      }
  
  }
  </code></pre>
  
  <p>And I'm getting this error:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined
        at products?q=iphone&amp;connectid=XXXXXXXXXX&amp;programs=12011&amp;callback=__ng_jsonp____req0_finished:1</p>
    
    <p>(anonymous) @
    products?q=iphone&amp;connectid=XXXXXXXXXXXX&amp;programs=12011&amp;callback=__ng_jsonp____req0_finished:1
    common.js:143</p>
    
    <p>Uncaught TypeError: Cannot read property 'apply' of null
        at globalOnerror (common.js:143)</p>
    
    <p>globalOnerror @ common.js:143</p>
    
    <p>productService.ts:29 200 - Ok</p>
  </blockquote>
  
  <p>How to solve that?</p>