Title: Macro Tasks left running after failed http requests with Unknown Error, preventing protractor from completing tests · Issue #38795 · angular/angular · GitHub
Open Graph Title: Macro Tasks left running after failed http requests with Unknown Error, preventing protractor from completing tests · Issue #38795 · angular/angular
X Title: Macro Tasks left running after failed http requests with Unknown Error, preventing protractor from completing tests · Issue #38795 · angular/angular
Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? Yes. Worked in @angular/common@9.1.12 Description A macroTask is left running when certain http errors occur and this prevents protractor for completing since there...
Open Graph Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? Yes. Worked in @angular/common@9.1.12 Description A macroTask is left running when certain http errors occur and this preven...
X Description: 🐞 bug report Affected Package @angular/common/http Is this a regression? Yes. Worked in @angular/common@9.1.12 Description A macroTask is left running when certain http errors occur and this preven...
Opengraph URL: https://github.com/angular/angular/issues/38795
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Macro Tasks left running after failed http requests with Unknown Error, preventing protractor from completing tests","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n@angular/common/http\r\n\r\n### Is this a regression?\r\nYes.\r\nWorked in **@angular/common@9.1.12**\r\n\r\n### Description\r\nA macroTask is left running when certain http errors occur and this prevents protractor for completing since there are tasks left running in the ngZone.\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/wfairclough/AngularHttpMacroTaskMinimalReproduction\r\n\r\nRun `npm install`\r\n\r\nRun with `npx ng serve`\r\n\r\nOpen Chrome Browser to `http://localhost:4200`\r\n\r\n**Reproduce Bug**\r\n\r\n1. Click Button **Make Successful Request** and see successul response.\r\n1. Click Button **Check Task Counts** and see the open micro and macro task counts in the ngZone.\r\n1. Click Button **Make Failed Request** and see the error response.\r\n1. Click Button **Check Task Counts** again and notice that the macroTask count is now 1.\r\n1. Repeat failed requests as many times as you like and the marcroTask count will just keep increasing.\r\n\r\n\r\n## 🔥 Exception or Error\r\n\r\n\r\nNo macroTasks should be left running after this failed http request.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n \r\n\r\nAngular CLI: 10.1.0\r\nNode: 10.20.1\r\nOS: linux x64\r\n\r\nAngular: 10.1.1\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.1001.0\r\n@angular-devkit/build-angular 0.1001.0\r\n@angular-devkit/build-optimizer 0.1001.0\r\n@angular-devkit/build-webpack 0.1001.0\r\n@angular-devkit/core 10.1.0\r\n@angular-devkit/schematics 10.1.0\r\n@angular/cli 10.1.0\r\n@ngtools/webpack 10.1.0\r\n@schematics/angular 10.1.0\r\n@schematics/update 0.1001.0\r\nrxjs 6.6.3\r\ntypescript 4.0.2\r\nwebpack 4.44.1\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nError occurs in both browsers I tested with Chrome and Firefox. \r\n","author":{"url":"https://github.com/wfairclough","@type":"Person","name":"wfairclough"},"datePublished":"2020-09-10T17:52:23Z","url":"https://github.com/angular/angular/issues/38795"}
| 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:2f3e382d-9f34-4ec7-356e-441f57f16c21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EEC:96DDF:E8F294:127CE45:6B010723 |
| html-safe-nonce | ef3ed7e23d5aee193fbc2d106afcf8cc91776e98bdb738337075082247b17566 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUVDOjk2RERGOkU4RjI5NDoxMjdDRTQ1OjZCMDEwNzIzIiwidmlzaXRvcl9pZCI6IjYxMDk0ODc4MzI0MjA2NDg3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41225a446cb3b03f2cd5ae2f39820a8bf85ea312f772d2423a2a4b55ca2d6095 |
| hovercard-subject-tag | issue:698296619 |
| 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/38795/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6fcebfb079d04d5177785ffef10f088152dd1ce72acea1fffcdd29dcf75a934/angular/angular/issues/38795 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6fcebfb079d04d5177785ffef10f088152dd1ce72acea1fffcdd29dcf75a934/angular/angular/issues/38795 |
| og:image:alt | 🐞 bug report Affected Package @angular/common/http Is this a regression? Yes. Worked in @angular/common@9.1.12 Description A macroTask is left running when certain http errors occur and this preven... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wfairclough |
| 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:
Viewport: width=device-width