René's URL Explorer Experiment


Title: @angular/ssr: an aborted request rejects `handle()` but the render keeps running · Issue #34567 · angular/angular-cli · GitHub

Open Graph Title: @angular/ssr: an aborted request rejects `handle()` but the render keeps running · Issue #34567 · angular/angular-cli

X Title: @angular/ssr: an aborted request rejects `handle()` but the render keeps running · Issue #34567 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description AngularServerApp.handle() wraps handleRendering() in promiseWithAbort(…, request.signal, …) (packages/angular/ssr/src/app.ts). Wh...

Open Graph Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description AngularServerApp.handle() wraps handleRendering() in promiseWithAbort(…, request.signal, ...

X Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description AngularServerApp.handle() wraps handleRendering() in promiseWithAbort(…, request.signal, ...

Opengraph URL: https://github.com/angular/angular-cli/issues/34567

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@angular/ssr: an aborted request rejects `handle()` but the render keeps running","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-server\n\n### Is this a regression?\n\nNo\n\n### Description\n\n`AngularServerApp.handle()` wraps `handleRendering()` in `promiseWithAbort(…, request.signal, …)` (`packages/angular/ssr/src/app.ts`). When the signal aborts, the returned promise rejects, but nothing stops the render: the platform `renderAngular()` created stays alive, its HTTP calls keep going, and the app goes on rendering a page nobody will receive.\n\nThis makes `request.signal` unusable as a render timeout. A server that caps renders (to answer 503 before the proxy's own timeout, and to limit how many renders run at once) gets its promise back on time while the work piles up in the background. With a slow backend, every abandoned render is still running when the next batch starts.\n\nReproduction: a route whose component issues an `HttpClient` GET to a backend that answers after 60 s. Call `engine.handle(new Request(url, { signal: AbortSignal.timeout(5_000) }))`. `handle()` rejects at 5 s; the backend still sees the request run to completion, and any request the app makes after that response still arrives. On our app (22.2.2), three renders aborted at 50 s made 8 more backend calls once the backend answered.\n\n**Suggested fix**\n\nPass the signal into `renderAngular()` and destroy the platform on abort, the same way it is destroyed after a normal render:\n\n```ts\n// utils/ng.ts, inside renderAngular(), after platformServer(...)\nconst onAbort = () => void asyncDestroyPlatform(platformRef);\nsignal?.addEventListener('abort', onAbort, { once: true });\n// ...and remove the listener in the existing finally / destroy paths\n```\n\nThe rest already works: destroying the app clears `PendingTasks`, so `whenStable()` settles; the `applicationRef.destroyed` check added in 730ae66 (\"handle platform destruction during rendering\") returns `{ hasNavigationError: true }`; and `FetchBackend` aborts its fetch when the destroyed app's subscriptions are torn down.\n\n**Workaround** (what we ship now), in `app.config.server.ts`:\n\n```ts\nprovideEnvironmentInitializer(() => {\n  const signal = inject(REQUEST, { optional: true })?.signal;\n  if (!signal) return;\n  const platform = inject(PlatformRef);\n  const destroy = () => setTimeout(() => platform.destroyed || platform.destroy());\n  if (signal.aborted) return destroy();\n  signal.addEventListener('abort', destroy, { once: true });\n  inject(DestroyRef).onDestroy(() => signal.removeEventListener('abort', destroy));\n});\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI       : 22.2.2\nAngular           : 22.2.2\nNode.js           : 24.22.1\nPackage Manager   : npm 11.19.1\nOperating System  : darwin arm64\n\n┌───────────────────────────────────┬───────────────────┬───────────────────┐\n│ Package                           │ Installed Version │ Requested Version │\n├───────────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/aria                     │ 22.2.2            │ ^22.2.2           │\n│ @angular/build                    │ 22.2.2            │ ^22.2.2           │\n│ @angular/cdk                      │ 22.2.2            │ ^22.2.2           │\n│ @angular/cli                      │ 22.2.2            │ ^22.2.2           │\n│ @angular/common                   │ 22.2.2            │ ^22.2.2           │\n│ @angular/compiler                 │ 22.2.2            │ ^22.2.2           │\n│ @angular/compiler-cli             │ 22.2.2            │ ^22.2.2           │\n│ @angular/core                     │ 22.2.2            │ ^22.2.2           │\n│ @angular/elements                 │ 22.2.2            │ ^22.2.2           │\n│ @angular/forms                    │ 22.2.2            │ ^22.2.2           │\n│ @angular/platform-browser         │ 22.2.2            │ ^22.2.2           │\n│ @angular/platform-browser-dynamic │ 22.2.2            │ ^22.2.2           │\n│ @angular/platform-server          │ 22.2.2            │ ^22.2.2           │\n│ @angular/router                   │ 22.2.2            │ ^22.2.2           │\n│ @angular/ssr                      │ 22.2.2            │ ^22.2.2           │\n│ ng-packagr                        │ 22.1.1            │ ^22.1.1           │\n│ rxjs                              │ 7.8.2             │ ~7.8.2            │\n│ typescript                        │ 6.0.3             │ ~6.0.3            │\n│ vitest                            │ 4.1.9             │ ^4.1.9            │\n└───────────────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/denisyilmaz","@type":"Person","name":"denisyilmaz"},"datePublished":"2026-10-28T13:12:19Z","url":"https://github.com/angular/angular-cli/issues/34567"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6be1e714-0707-40b7-8c0d-d1f8808d5bb7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE7B8:299992:F6119D:145A258:6B01D792
html-safe-nonce1428ca4966b6f7e07eddd69bb45601546c4382bdae576c1e2632301c91a06a7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0I4OjI5OTk5MjpGNjExOUQ6MTQ1QTI1ODo2QjAxRDc5MiIsInZpc2l0b3JfaWQiOiI3MzgwNTM5OTMwMDEyOTMxOTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac28a2f6072aa96e0dda66f0c6850baa82308b40b6d02a8e16f1d6e52fa7379f7a
hovercard-subject-tagissue:6079641479
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/34567/issue_layout
twitter:imagehttps://opengraph.githubassets.com/66679f2731175cd86b9182b9eae186db1e08a52c4a60e6753a8f1c8a3ec761bf/angular/angular-cli/issues/34567
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/66679f2731175cd86b9182b9eae186db1e08a52c4a60e6753a8f1c8a3ec761bf/angular/angular-cli/issues/34567
og:image:altWhich @angular/* package(s) are the source of the bug? platform-server Is this a regression? No Description AngularServerApp.handle() wraps handleRendering() in promiseWithAbort(…, request.signal, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedenisyilmaz
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/34567#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F34567
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F34567
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/34567
Reloadhttps://github.com/angular/angular-cli/issues/34567
Reloadhttps://github.com/angular/angular-cli/issues/34567
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34567
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34567
#34568https://github.com/angular/angular-cli/pull/34568
@angular/ssr: an aborted request rejects handle() but the render keeps runninghttps://github.com/angular/angular-cli/issues/34567#top
#34568https://github.com/angular/angular-cli/pull/34568
area: @angular/ssrhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fssr%22
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/denisyilmaz
denisyilmazhttps://github.com/denisyilmaz
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#issue-6079641479
730ae66https://github.com/angular/angular-cli/commit/730ae6609b847802124a5c6e12c77522af54b967
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34477051578
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34477051692
JeanMechehttps://github.com/JeanMeche
angular/angularhttps://github.com/angular/angular
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34477052003
angular-robothttps://github.com/apps/angular-robot
area: @angular/ssrhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fssr%22
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34477067130
alan-agius4https://github.com/alan-agius4
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34486033427
fix(@angular/ssr): destroy platform when request is aborted during re…https://github.com/alan-agius4/angular-cli/commit/322f09f96351ada1cde2902bfecaf396d9444e02
https://docs.github.com/articles/closing-issues-via-commit-messages
322f09fhttps://github.com/alan-agius4/angular-cli/commit/322f09f96351ada1cde2902bfecaf396d9444e02
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#34568https://github.com/angular/angular-cli/pull/34568
on Oct 28, 2026https://github.com/angular/angular-cli/issues/34567#event-34507840710
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/34567
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34567
area: @angular/ssrhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fssr%22
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.