Title: Canceling an in-progress JSONP request causes "callback undefined" console error · Issue #34818 · angular/angular · GitHub
Open Graph Title: Canceling an in-progress JSONP request causes "callback undefined" console error · Issue #34818 · angular/angular
X Title: Canceling an in-progress JSONP request causes "callback undefined" console error · Issue #34818 · angular/angular
Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? No Description It looks like HttpClientJsonpModule deletes the JSONP callback function for a request immediately upon cancellation. If the request was still in prog...
Open Graph Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? No Description It looks like HttpClientJsonpModule deletes the JSONP callback function for a request immediately upon cancel...
X Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? No Description It looks like HttpClientJsonpModule deletes the JSONP callback function for a request immediately upon cancel...
Opengraph URL: https://github.com/angular/angular/issues/34818
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Canceling an in-progress JSONP request causes \"callback undefined\" console error","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n@angular/common/http\r\n\r\n### Is this a regression?\r\nNo\r\n\r\n### Description\r\n\r\nIt looks like HttpClientJsonpModule deletes the JSONP callback function for a request immediately upon cancellation. If the request was still in progress, an error is logged in the console when it completes because the function doesn't exist.\r\n\r\nThis issue occurs when the time between requests is usually lower than the time a request takes to complete.\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://angular-c6oeqi.stackblitz.io\r\nhttps://stackblitz.com/edit/angular-c6oeqi\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nUncaught ReferenceError: ng_jsonp_callback_16 is not defined\r\n\u003c/code>\u003c/pre>\r\n\r\n## 🌍 Your Environment\r\n_**Can be reproduced with Angular 8 (see repro)**_ ‼️\r\n\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 6.2.9\r\nNode: 8.17.0\r\nOS: darwin x64\r\nAngular: 6.1.10\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, platform-browser, platform-browser-dynamic\r\n... platform-server, router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.8.9\r\n@angular-devkit/build-angular 0.8.9\r\n@angular-devkit/build-optimizer 0.8.9\r\n@angular-devkit/build-webpack 0.8.9\r\n@angular-devkit/core 0.8.9\r\n@angular-devkit/schematics 0.8.9\r\n@angular/cdk 6.4.7\r\n@angular/cli 6.2.9\r\n@angular/language-service 7.2.15\r\n@ngtools/webpack 6.2.9\r\n@schematics/angular 0.8.9\r\n@schematics/update 0.8.9\r\nrxjs 6.2.2\r\ntypescript 2.9.2\r\nwebpack 4.16.4\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nNo","author":{"url":"https://github.com/eppsilon","@type":"Person","name":"eppsilon"},"datePublished":"2020-01-16T19:24:47Z","url":"https://github.com/angular/angular/issues/34818"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d45b567f-f6a6-81f9-7f86-3b9c4a96a037 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE06:3F8AB1:10357CD:14C3C4B:6B00FF8A |
| html-safe-nonce | 95680644c3229cfb61780f277bebb7490ee16fb8adc40bf44fdd9680b98eeb8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA2OjNGOEFCMToxMDM1N0NEOjE0QzNDNEI6NkIwMEZGOEEiLCJ2aXNpdG9yX2lkIjoiNjU0NzcyNDMxMzY2MTg2NTg2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d9611168d3ab926615b0241543aca2cd8b1649c6e007a2e661a8be5db87fe9f |
| hovercard-subject-tag | issue:551006254 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/34818/issue_layout |
| twitter:image | https://opengraph.githubassets.com/190fffd64c25ca11dff6f35ca049693b2eeb755d85e32815f9a12879c29ef092/angular/angular/issues/34818 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/190fffd64c25ca11dff6f35ca049693b2eeb755d85e32815f9a12879c29ef092/angular/angular/issues/34818 |
| og:image:alt | 🐞 bug report Affected Package @angular/common/http Is this a regression? No Description It looks like HttpClientJsonpModule deletes the JSONP callback function for a request immediately upon cancel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eppsilon |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links: