Tauri2 请求报错invalid args streamChannel for command fetch_read_body

9 阅读1分钟

Make sure the JS package also matches the same version of the Rust crate

Cargo.lock里的tauri-plugin-http版本号要和package.json里的版本号保持一致

Cargo.toml
tauri-plugin-http = "2"

[[package]]
name = "tauri-plugin-http"
version = "2.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "938a3d7051c9a82b431e3a0f3468f85715b3442b3c3a3913095e9fa509e2652c"
dependencies = [
 "bytes",
 "cookie_store",
 "data-url",
 "http",
 "regex",
 "reqwest",
 "schemars 0.8.22",
 "serde",
 "serde_json",
 "tauri",
 "tauri-plugin",
 "tauri-plugin-fs",
 "thiserror 2.0.16",
 "tokio",
 "url",
 "urlpattern",
]

"@tauri-apps/plugin-http": "~2.5.2"