Skip to content

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

Open

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)

Activity

  1. added a commit that references this issue on Mar 23, 2025
  2. amrbashir commented on Mar 23, 2025

    @amrbashir
    Member

    could you see if #2562 fixes the issue?

  3. rockfactory commented on Mar 23, 2025

    @rockfactory
    Author

    Hi @amrbashir thanks for the fast response!
    I tried pinning that branch from git, but it seems to exhibit the same behaviour.
    Here is the relevant git dependency pinning, I'm sharing it since I'd like to be sure I'm testing it correctly: rockfactory/civ7-mods-hub@a75e9ca

  4. amrbashir commented on Mar 23, 2025

    @amrbashir
    Member

    You need to build the JS API locally and use it as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions