Skip to content
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

[bug] ERR_CONTENT_LENGTH_MISMATCH:200 when trying to fetch large data from Flask server on Windows in Tauri app on Android #13089

Open
exevrs opened this issue Mar 28, 2025 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@exevrs
Copy link

exevrs commented Mar 28, 2025

Describe the bug

I am encountering an issue where I cannot retrieve large responses (such as JSON data) from a Flask server to a Tauri app on Android using Axios.

The error I receive is:
ERR_CONTENT_LENGTH_MISMATCH: 200 (OK).

But in chrome browser on Android it`s working correctly.

Reproduction

Set up a Flask server on a Windows machine.
The Flask server sends a large response (e.g., large JSON data) with a Content-Length header.

Create a Tauri app on Android that attempts to fetch this data using Axios.

Make a GET request from the Tauri app to the Flask server to retrieve the large data.

The request will succeed with status 200 OK, but it fails with ERR_CONTENT_LENGTH_MISMATCH in the Android app when the response is large (in my case, around 630KB or larger).

Expected behavior

The Tauri app should be able to retrieve large data successfully from the Flask server, and the response should be correctly parsed in the app without encountering any errors.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 134.0.3124.93
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 16.19.0
    - pnpm: 8.15.9
    - npm: 8.19.3

[-] Packages
    - tauri 🦀: 2.3.1
    - tauri-build 🦀: 2.0.6
    - wry 🦀: 0.50.3
    - tao 🦀: 0.32.6
    - @tauri-apps/api : 2.3.0 (outdated, latest: 2.4.0)
    - @tauri-apps/cli : 2.3.1 (outdated, latest: 2.4.0)

[-] Plugins
    - tauri-plugin-store 🦀: 2.2.0
    - @tauri-apps/plugin-store : 2.1.0 (outdated, latest: 2.2.0)
    - tauri-plugin-shell 🦀: 2.2.0
    - @tauri-apps/plugin-shell : 2.2.0
    - tauri-plugin-http 🦀: 2.3.0
    - @tauri-apps/plugin-http : 2.3.0 (outdated, latest: 2.4.2) 
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : 2.2.0

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

Stack trace


Additional context

No response

@exevrs exevrs added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant