Is there an existing issue for this?
What happened?
Description:
The app cannot make HTTP requests to the localhost backend because tauri-plugin-http is not configured. This affects all users trying to run the full stack.
Location:
src-tauri/src/main.rs - Missing HTTP plugin initialization
src/utils/serverUtils.ts:XX - Uses fetch() which is blocked in Tauri v2
Current Code:
// main.rs - No HTTP plugin configured
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_dialog::init())
// Missing: .plugin(tauri_plugin_http::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
Impact:
fetch(BACKEND_URL + '/health') fails silently
- Frontend cannot connect to Python backend on port 52123
- App appears to work but backend communication is broken
Fix Required:
- Add to
Cargo.toml:
[dependencies]
tauri-plugin-http = "2.0.0"
- Update
main.rs:
.plugin(tauri_plugin_http::init())
- Add to
capabilities/migrated.json:
{
"permissions": [
"http:default",
"http:allow-fetch"
]
}
Related:
This is a Tauri v2 security requirement - HTTP requests are blocked by default without the plugin.
Record
Is there an existing issue for this?
What happened?
Description:
The app cannot make HTTP requests to the localhost backend because
tauri-plugin-httpis not configured. This affects all users trying to run the full stack.Location:
src-tauri/src/main.rs- Missing HTTP plugin initializationsrc/utils/serverUtils.ts:XX- Usesfetch()which is blocked in Tauri v2Current Code:
Impact:
fetch(BACKEND_URL + '/health')fails silentlyFix Required:
Cargo.toml:main.rs:capabilities/migrated.json:{ "permissions": [ "http:default", "http:allow-fetch" ] }Related:
This is a Tauri v2 security requirement - HTTP requests are blocked by default without the plugin.
Record