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] failed to bundle project: protocol: http response missing version #12866

Open
nianxiongdi opened this issue Mar 2, 2025 · 1 comment
Open
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@nianxiongdi
Copy link

Describe the bug

(base) ➜ tauri-app npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc

tauri-app@0.1.0 tauri
tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc

Running beforeBuildCommand `pnpm build`

tauri-app@0.1.0 build /Users/qy/Desktop/learn/tauri-app
vue-tsc --noEmit && vite build

vite v6.2.0 building for production...
✓ 18 modules transformed.
dist/index.html 0.48 kB │ gzip: 0.31 kB
dist/assets/index-ohaBDKuF.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-BrXQAEgn.js 62.45 kB │ gzip: 25.17 kB
✓ built in 607ms
warning: tauri-app@0.1.0: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit status: 1): "clang-cl" "-E" "/Users/qy/Desktop/learn/tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/build/tauri-app-0f63cf91ded7c344/out/1154720664046472960detect_compiler_family.c"
warning: tauri-app@0.1.0: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit status: 1): "clang-cl" "-E" "/Users/qy/Desktop/learn/tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/build/tauri-app-0f63cf91ded7c344/out/14893979415780077929detect_compiler_family.c"
Compiling tauri-app v0.1.0 (/Users/qy/Desktop/learn/tauri-app/src-tauri)
Finished release profile [optimized] target(s) in 45.95s
Built application at: /Users/qy/Desktop/learn/tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/tauri-app.exe
Warn Cross-platform compilation is experimental and does not support all features. Please use a matching host system for full compatibility.
Warn Signing, by default, is only supported on Windows hosts, but you can specify a custom signing command in bundler > windows > sign_command, for now, skipping signing the installer...
Warn ignoring msi
Info Verifying NSIS package
Downloading https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.2/nsis_tauri_utils.dll
Info GET https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.2/nsis_tauri_utils.dll
Info Request { method: GET, uri: https://github.com/tauri-apps/nsis-tauri-utils/releases/download/nsis_tauri_utils-v0.4.2/nsis_tauri_utils.dll, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "/", "host": "github.com"} }
failed to bundle project: protocol: http response missing version
Error failed to bundle project: protocol: http response missing version

Reproduction

No response

Expected behavior

No response

Full tauri info output

(base) ➜  tauri-app pnpm tauri info

> tauri-app@0.1.0 tauri /Users/qy/Desktop/learn/tauri-app
> tauri info

    Info GET https://docs.rs/crate/tauri/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Sun, 02 Mar 2025 07:22:04 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tauri-build/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri-build/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Sun, 02 Mar 2025 07:22:04 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/wry/
    Info Request { method: GET, uri: https://docs.rs/crate/wry/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Sun, 02 Mar 2025 07:22:04 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tao/
    Info Request { method: GET, uri: https://docs.rs/crate/tao/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Sun, 02 Mar 2025 07:22:05 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }
    Info GET https://docs.rs/crate/tauri-plugin-opener/
    Info Request { method: GET, uri: https://docs.rs/crate/tauri-plugin-opener/, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.0.2", "accept": "*/*", "host": "docs.rs"} }
    Info Response { status: 400, version: HTTP/1.1, headers: {"server": "CloudFront", "date": "Sun, 02 Mar 2025 07:22:05 GMT", "content-type": "text/html", "content-length": "915", "connection": "close", "<NOTICE>": "4 HEADERS ARE REDACTED"} }

[✔] Environment
    - OS: Mac OS 11.7.10 x86_64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (default)
    - node: 20.11.0
    - pnpm: 10.2.0
    - yarn: 1.22.22
    - npm: 10.2.4

Stack trace


Additional context

No response

@nianxiongdi nianxiongdi added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 2, 2025
@FabianLars
Copy link
Member

Do you have a system proxy set up? If the wix or nsis downloads file it's almost always due to proxies, eg #7338

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

2 participants