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
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
- fix(http): expose BrowserJsonp Closes #14267 — committed to DzmitryShylovich/angular by DzmitryShylovich 7 years ago
- fix(http): expose BrowserJsonp Closes #14267 — committed to DzmitryShylovich/angular by DzmitryShylovich 7 years ago
- search results jsonp to deezer, limit to angular 2.4.5 due to https://github.com/angular/angular/issues/14267 — committed to insidewhy/collaborative-playlist by insidewhy 7 years ago
- fix(http): REVERT: remove dots from jsonp callback name (#13219) This reverts commit 9e5617e41e222d29c3952ba71a401804030cd153. — committed to angular/angular by mhevery 7 years ago
@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