Title: httpResource.arrayBuffer causes [Object object] error with SSR · Issue #66827 · angular/angular · GitHub
Open Graph Title: httpResource.arrayBuffer causes [Object object] error with SSR · Issue #66827 · angular/angular
X Title: httpResource.arrayBuffer causes [Object object] error with SSR · Issue #66827 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description When using httpResource.arrayBuffer and have SSR enabled the arraybuffer is not copied correctly and the client is hydrated initially with...
Open Graph Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description When using httpResource.arrayBuffer and have SSR enabled the arraybuffer is not copied correctly a...
X Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description When using httpResource.arrayBuffer and have SSR enabled the arraybuffer is not copied correctly a...
Opengraph URL: https://github.com/angular/angular/issues/66827
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"httpResource.arrayBuffer causes [Object object] error with SSR","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncommon\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen using httpResource.arrayBuffer and have SSR enabled the arraybuffer is not copied correctly and the client is hydrated initially with an arraybuffer with length of 15 - `[Object object]` is what is returned when doing TextDecoder().Decode\n\n\u003cimg width=\"2000\" height=\"691\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0ffb4bfc-cbe0-439e-b00b-c21e0c59764c\" />\n\nthe httpResource parse method is initially invoked with this 15 byte arraybuffer which can cause errors with custom parsers\n\nThis problem can be 'solved' be setting `transferCache` to false but you are now making 2 requests, 1 server - 1 client. it's also less ideal as data may have changed between those 2 requests occurring.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/henrikse55/angular-httpresource-ssr\n\n### Please provide the exception or error you saw\n\n```true\nNone, it's completely silent and possibly breaks custom parse logic\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI : 21.1.2\nAngular : 21.1.2\nNode.js : 20.19.5\nPackage Manager : yarn 1.22.22\nOperating System : linux x64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build │ 21.1.2 │ ^21.0.3 │\n│ @angular/cli │ 21.1.2 │ ^21.0.3 │\n│ @angular/common │ 21.1.2 │ ^21.0.0 │\n│ @angular/compiler │ 21.1.2 │ ^21.0.0 │\n│ @angular/compiler-cli │ 21.1.2 │ ^21.0.0 │\n│ @angular/core │ 21.1.2 │ ^21.0.0 │\n│ @angular/forms │ 21.1.2 │ ^21.0.0 │\n│ @angular/platform-browser │ 21.1.2 │ ^21.0.0 │\n│ @angular/platform-server │ 21.1.2 │ ^21.0.0 │\n│ @angular/router │ 21.1.2 │ ^21.0.0 │\n│ @angular/ssr │ 21.1.2 │ ^21.0.3 │\n│ rxjs │ 7.8.2 │ ~7.8.0 │\n│ typescript │ 5.9.3 │ ~5.9.2 │\n│ vitest │ 4.0.18 │ ^4.0.8 │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\nWhile excluded from the reproduction repo, httpResource.blob has the same issue in my experience\n\nI noticed TransferState states dosen't support class types, this might be the cause?\n\nI ran into this issue in a personal project exploring memorypack and generated ts types","author":{"url":"https://github.com/henrikse55","@type":"Person","name":"henrikse55"},"datePublished":"2026-01-29T17:28:07Z","url":"https://github.com/angular/angular/issues/66827"}
| 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:f9f35ff6-98c8-412f-04a3-b4adfefe284f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C7E:363D8E:3828CDB:4743604:6B01D8F0 |
| html-safe-nonce | 49b7156bf5f3e28f7f2f93f00b6e1912a519c57053fc529b971079c7dfcd3cb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzdFOjM2M0Q4RTozODI4Q0RCOjQ3NDM2MDQ6NkIwMUQ4RjAiLCJ2aXNpdG9yX2lkIjoiMzM3NzA2OTY1NDkxNTc5OTI4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f93ee988e5abf39ea71dbfdf949bda7f04137001cc811c172f95146cc2786b7 |
| hovercard-subject-tag | issue:3871804707 |
| 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/66827/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12a8ca18c20b7803ef421cf8fd412de1c97f7955a2389211d85c84726d792a93/angular/angular/issues/66827 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12a8ca18c20b7803ef421cf8fd412de1c97f7955a2389211d85c84726d792a93/angular/angular/issues/66827 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description When using httpResource.arrayBuffer and have SSR enabled the arraybuffer is not copied correctly a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henrikse55 |
| 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