Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rockfactory opened this issue Mar 23, 2025 · 3 comments
Labels
bug Something isn't working plugin: http

Comments

@rockfactory
Copy link

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)

rockfactory added a commit to rockfactory/civ7-mods-hub that referenced this issue Mar 23, 2025
@amrbashir
Copy link
Member

could you see if #2562 fixes the issue?

@FabianLars FabianLars added bug Something isn't working plugin: http labels Mar 23, 2025
@rockfactory
Copy link
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

@amrbashir
Copy link
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
Labels
bug Something isn't working plugin: http
Projects
None yet
Development

No branches or pull requests

3 participants