Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

When using TransferHttpCacheModule, client-side arraybuffer or blob type http requests cannot be returned correctly #2734

@gzf6

Description

@gzf6

🐞 Bug report

What modules are related to this issue?

  • builders
  • common
  • express-engine

Is this a regression?

Description

When using TransferHttpCacheModule, client-side arraybuffer or blob type http requests cannot be returned correctly.

After setting according to this document https://github.com/angular/universal/blob/main/docs/transfer-http.md, use httpClient to send a request with responseType as blob or arraybuffer, and only get 'Response is not an Blob.' or 'Response is not an ArrayBuffer.'

🔬 Minimal Reproduction

🔥 Exception or Error

After setting according to the documentation of TransferHttpCacheModule, try the following request, the error will be reproduced


this.httpClient.get('https://cn.bing.com/th?id=OHR.SharavatiBridge_ZH-CN2011371774_1920x1080.jpg',{
   responseType:'arraybuffer'
})

🌍 Your Environment


Angular CLI: 14.0.4
Node: 16.15.1
Package Manager: npm 8.11.0
OS: win32 x64

Angular: 14.0.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1400.4
@angular-devkit/build-angular   14.0.4
@angular-devkit/core            14.0.4
@angular-devkit/schematics      14.0.4
@nguniversal/builders           14.0.2
@nguniversal/express-engine     14.0.2
@schematics/angular             14.0.4
rxjs                            7.5.5
typescript                      4.7.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions