Skip to content

[bug] tauri-plugin-http: response.arrayBuffer() stalling indefinitely after 2.4.1 release #2564

@rockfactory

Description

@rockfactory

Describe the bug

After tauri-plugin-http 2.4.1 release, I've seen the response.arrayBuffer(); method stalls indefinitely, while on 2.4.0 it completes correctly. This is the commit affecting the behavior: a15eedf

I'm not sure this is a bug related to that commit, or if that changes made it visible

Reproduction

const response = await fetch('...');
const disposition = response.headers.get('content-disposition');
const buffer = await response.arrayBuffer();
console.log('Never reached');

Tauri info

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 134.0.3124.72
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.0
    - npm: 10.2.4

[-] Packages
    - tauri 🦀: 2.4.0
    - tauri-build 🦀: 2.1.0
    - wry 🦀: 0.50.5
    - tao 🦀: 0.32.8
    - @tauri-apps/api : 2.4.0
    - @tauri-apps/cli : 2.4.0

[-] Plugins
    - tauri-plugin-deep-link 🦀: 2.2.0
    - @tauri-apps/plugin-deep-link : 2.2.0
    - tauri-plugin-process 🦀: 2.2.0
    - @tauri-apps/plugin-process : 2.2.0
    - tauri-plugin-updater 🦀: 2.6.1
    - @tauri-apps/plugin-updater : 2.6.1
    - tauri-plugin-http 🦀: 2.4.0
    - @tauri-apps/plugin-http : 2.4.0 (outdated, latest: 2.4.2)
    - tauri-plugin-log 🦀: 2.3.1
    - @tauri-apps/plugin-log : 2.3.1
    - tauri-plugin-dialog 🦀: 2.2.0
    - @tauri-apps/plugin-dialog : 2.2.0
    - tauri-plugin-opener 🦀: 2.2.6
    - @tauri-apps/plugin-opener : 2.2.6
    - tauri-plugin-single-instance 🦀: 2.2.2
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-shell 🦀: 2.2.0
    - @tauri-apps/plugin-shell : 2.2.0
    - tauri-plugin-window-state 🦀: 2.2.1
    - @tauri-apps/plugin-window-state : 2.2.1
    - tauri-plugin-store 🦀: 2.2.0
    - @tauri-apps/plugin-store : 2.2.0
    - tauri-plugin-persisted-scope 🦀: 2.2.0
    - @tauri-apps/plugin-persisted-scope : not installed!
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : 2.2.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

(http is 2.4.0 since this is the version I pinned)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions