Description
Describe the bug
When putting a raw json endpoint in the updater.endpoints section of tauri.conf I get (error sending request for url ("endpoint url")). If I click on the link via the console output it opens just fine in another window. I then tried to switch to the github releases file download option and it gets the same error (error sending request for url ("its a weird objects.githubusercontent aws link that 401's"))
Reproduction
tauri conf
"plugins": {
"updater": {
"active": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEQ1NDVEQ0NDNkE1Q0U0MQpSV1JCenFYR3pGMVVEYmJoZ1lvcFd1dDlxVk9TSHlZTGZva0plbnAvMjd4ODZQdDM3eHVmZEloOQo=",
"endpoints": [
"https://github.com/AnthonyTB/port-24/releases/latest/download/latest.json"
]
}
}
package.json
"@tauri-apps/plugin-process": "2.2.0",
"@tauri-apps/plugin-updater": "2.6.1",
js implementation
check({ timeout: 30000 })
.then(async (data) => {
console.log("j", { data });
if (data) {
data
.downloadAndInstall()
.then(async (res) => {
console.log("h", { res });
await relaunch();
})
.catch((i_err) => {
console.log({ i_err });
});
} else {
console.log("no update");
setLoading(false);
}
})
.catch((err) => {
console.log({ err });
});
Expected behavior
Better error handling instead of just error requesting url and for it parse the json properly
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.26100 x86_64 (X64)
✔ WebView2: 134.0.3124.93
✔ MSVC: Visual Studio Build Tools 2022
✔ rustc: 1.85.1 (4eb161250 2025-03-15)
✔ cargo: 1.85.1 (d73d2caf9 2024-12-31)
✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 23.9.0
- npm: 10.9.2
[-] Packages
- tauri 🦀: 2.4.0
- tauri-build 🦀: 2.1.0
- wry 🦀: 0.50.5
- tao 🦀: 0.32.8
[-] Plugins
- tauri-plugin-opener 🦀: 2.2.6
- tauri-plugin-process 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#0bc5d5887420ba1eb718254490b7995c771c0447 (2.2.0)
- tauri-plugin-updater 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#0bc5d5887420ba1eb718254490b7995c771c0447 (2.6.1)
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
### Stack trace
```text
Additional context
No response