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

Build fails with Error: response body closed before all bytes were read #126

Closed
websmurf opened this issue Oct 10, 2024 · 2 comments
Closed

Comments

@websmurf
Copy link

websmurf commented Oct 10, 2024

I'm not sure if this is something that can be fixed or not, but I'm trying to build a Tauri app from inside a docker container with the following command:

yarn tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc

This will internally start a call to cargo-xwin which will kick off the build process which results in the following command being executed:

cargo-xwin build --bins --features tauri/custom-protocol,tauri/native-tls --release --target x86_64-pc-windows-msvc

Many times the result of this attempt will be the following:

✓ built in 1.75s
  Manifest [0s] =================================================================================================================================================================================================== 11.39 MiB/11.39 MiB 📥 downloaded
  CRT.headers [0s] ================================================================================================================================================================================================== 17.50 MiB/17.50 MiB 📦 splatted
  CRT.libs.x86_64.desktop [0s] ==================================================================================================================================================================================== 183.89 MiB/183.89 MiB 📦 splatted
  CRT.libs.x86_64.store [0s] ======================================================================================================================================================================================== 65.38 MiB/65.38 MiB 📦 splatted
  CRT.libs.aarch64.store [0s] ===================================================================================================================================================================================== 114.20 MiB/114.20 MiB 📦 splatted
  SDK.headers.all.none [0s] ========================================================================================================================================================================================= 89.79 MiB/89.79 MiB 📦 splatted
  SDK.headers.all.store [0s] ====================================================================================================================================================================================== 219.85 MiB/219.85 MiB 📦 splatted
  SDK.headers.x86_64.none [0s] ====================================================================================================================================================================================== 45.17 KiB/45.17 KiB 📦 splatted
  SDK.headers.aarch64.none [0s] =================================================================================================================================================================================== 103.02 KiB/103.02 KiB 📦 splatted
  SDK.libs.x86_64 [0s] ============================================================================================================================================================================================== 71.15 MiB/71.15 MiB 📦 splatted
  SDK.libs.aarch64 [0s] =========================================================================================================================================================================================== 131.90 MiB/131.90 MiB 📦 splatted
  SDK.libs.store.all [0s] ============================================================================================================================================================================================ 15.76 MiB/15.76 MiB downloaded
  SDK.ucrt.all [7s] ================================================================================================================================================================================================ 102.71 MiB/102.71 MiB downloaded

Error: response body closed before all bytes were read
failed to build app: failed to build app
    Error failed to build app: failed to build app

The error message indicates a certain download error. The amount of files that can succesfully be fetched varies from time to time and also retrying it will sometimes result in a successful build.

Is there a way to work around this issue?

@messense
Copy link
Member

No work around yet, make sure you have a stable network when running it.

@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
@sentialx
Copy link

Jake-Shadle/xwin#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants