Title: `service worker` should log an error when asset hash check fails · Issue #60563 · angular/angular · GitHub
Open Graph Title: `service worker` should log an error when asset hash check fails · Issue #60563 · angular/angular
X Title: `service worker` should log an error when asset hash check fails · Issue #60563 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description The service worker script throws an error when hash check fails but this error is caught by this try block without catch part and ...
Open Graph Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description The service worker script throws an error when hash check fails but this error is caught b...
X Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description The service worker script throws an error when hash check fails but this error is caught b...
Opengraph URL: https://github.com/angular/angular/issues/60563
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`service worker` should log an error when asset hash check fails","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nservice-worker\n\n### Is this a regression?\n\nNo\n\n### Description\n\nThe service worker script [throws an error](https://github.com/angular/angular/blob/6d3849ffc85cc52b0eba3836b24f10895621acbe/packages/service-worker/worker/src/assets.ts#L446) when hash check fails but this error is caught by [this try block](https://github.com/angular/angular/blob/6d3849ffc85cc52b0eba3836b24f10895621acbe/packages/service-worker/worker/src/assets.ts#L319) without `catch` part and is silently ignored.\nThere should be a clear indication when hash check fails by logging an error or warning to console.\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 19.2.4\nNode: 22.13.1\nPackage Manager: bun 1.2.6\nOS: win32 x64\n\nAngular: 19.2.3\n... animations, common, compiler, compiler-cli, core, forms\n... platform-browser, router, service-worker\n\nPackage Version\n------------------------------------------------------\n@angular-devkit/architect 0.1902.4\n@angular-devkit/core 19.2.4\n@angular-devkit/schematics 19.2.4\n@angular/build 19.2.4\n@angular/cdk 19.2.6\n@angular/cli 19.2.4\n@schematics/angular 19.2.4\nrxjs 7.8.2\ntypescript 5.8.2\nzone.js 0.15.0\n```\n\n**EDIT:** might also be related to [zone.js bug](https://github.com/angular/angular/issues/47562) resulting in lost unhandled errors.","author":{"url":"https://github.com/hakimio","@type":"Person","name":"hakimio"},"datePublished":"2025-03-26T12:51:42Z","url":"https://github.com/angular/angular/issues/60563"}
| 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:928917b8-3349-ef52-2e45-b792be25f204 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDA6:96DDF:1613C40:1BF7016:6B012F43 |
| html-safe-nonce | a2d7cefabd6730534d11144027b520832ef7dee6a5db55b9c0c320394786bcf2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREE2Ojk2RERGOjE2MTNDNDA6MUJGNzAxNjo2QjAxMkY0MyIsInZpc2l0b3JfaWQiOiI0OTY2NjUyMjEyMzk5OTEwNzIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c11aac61ad9dcdf9ffa30716348ec37133b07db4c3a4eab168c28f8629c3a7b |
| hovercard-subject-tag | issue:2949505361 |
| 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/60563/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b245ab479e2bcf453876b30c2a9a522ecb8f99dde099a6f5d797e6726ce05c48/angular/angular/issues/60563 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b245ab479e2bcf453876b30c2a9a522ecb8f99dde099a6f5d797e6726ce05c48/angular/angular/issues/60563 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description The service worker script throws an error when hash check fails but this error is caught b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hakimio |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width