Title: http: improve error message with null header · Issue #46048 · angular/angular · GitHub
Open Graph Title: http: improve error message with null header · Issue #46048 · angular/angular
X Title: http: improve error message with null header · Issue #46048 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description When a header value of an HTTP call is null we throw a TypeError: Cannot read properties of null (reading 'length'). That's accurate and cou...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description When a header value of an HTTP call is null we throw a TypeError: Cannot read properties of null (re...
X Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description When a header value of an HTTP call is null we throw a TypeError: Cannot read properties of null (re...
Opengraph URL: https://github.com/angular/angular/issues/46048
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http: improve error message with null header","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\r\n\r\n_No response_\r\n\r\n### Description\r\n\r\nWhen a header value of an HTTP call is `null` we throw a `TypeError`: `Cannot read properties of null (reading 'length')`.\r\n\r\nThat's accurate and could be more useful if we also specify the header with `null` value.\r\n\r\nYou can find a reproduction [on StackBlitz](https://stackblitz.com/edit/angular-ivy-cjwehw?file=src%2Fapp%2Fapp.component.ts).\r\n\r\nBased on a discussion on Twitter [here](https://twitter.com/SureshNagar21/status/1527031130339221505).\r\n\r\n### Proposed solution\r\n\r\nThrow an error `Cannot read the \"length\" property of the header \"bar\" because it has value null`\r\n\r\n### Alternatives considered\r\n\r\nStricter typings of the `headers` so that we can show a type error.","author":{"url":"https://github.com/mgechev","@type":"Person","name":"mgechev"},"datePublished":"2022-05-18T21:12:21Z","url":"https://github.com/angular/angular/issues/46048"}
| 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:c585efff-bcf0-7385-8918-3e1b11bad8cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E41A:215B92:A9333A:E2629C:6B00EFEA |
| html-safe-nonce | 4ef3e9ee5fc06f6bb9b2bc2599c8413f30d0b0f22e65e9a97ba4bd8d442e30a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDFBOjIxNUI5MjpBOTMzM0E6RTI2MjlDOjZCMDBFRkVBIiwidmlzaXRvcl9pZCI6IjY0Nzk2NDk3MDQ3OTA1MTk3ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e149e0c87571fc38b16d717f0eb732d9501548163e517c7a5d9221b9864d777b |
| hovercard-subject-tag | issue:1240536651 |
| 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/46048/issue_layout |
| twitter:image | https://opengraph.githubassets.com/658a1d5dcdd7090047afbb1f5b3ffe37750e1a8bf3c763de6301a96ef89c624a/angular/angular/issues/46048 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/658a1d5dcdd7090047afbb1f5b3ffe37750e1a8bf3c763de6301a96ef89c624a/angular/angular/issues/46048 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? No response Description When a header value of an HTTP call is null we throw a TypeError: Cannot read properties of null (re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgechev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width