angular: Jsonp error `Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined` after https://github.com/angular/angular/pull/13219

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

hello, after upgrade to 2.4.6, I get Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined as https://github.com/angular/angular/pull/13219#discussion_r90797936 image

Plunkr http://plnkr.co/edit/WcRnPrJHa04rJy3xTIky?p=preview

And my code is

search(key: string) {
  const params = new URLSearchParams()
  params.set('key', key)
  params.set('jsonpCallback', 'JSONP_CALLBACK')
  return this.jsonp.get('https://c.y.qq.com/splcloud/fcgi-bin/smartbox_new.fcg?' + params)
  .toPromise()
  .then(res => {
    console.log(res)
    return []
  })
}

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 20 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@Klerith the bug was introduced in 2.4.6. So you need to use 2.4.5

@Klerith will be fixed in the next release. Use 2.4.5 version of http module