plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[updater] check() always return object and is never null

Open alexiokay opened this issue 3 months ago • 5 comments

On: Tauri 2.8.5 and tauri updater plugin 2.9.0

Check() function always return object with empty data and only available: true, so checking if(update) == null like in docs doesnt work anymore... I updated tauri and this plugin and it broke my update functionality. I moved back to updater plugin 2.5.1 version and now it works as expected..

I didn't change anything on my update server.

alexiokay avatar Sep 20 '25 21:09 alexiokay

could you perhaps share the output of the tauri info command when you see that bug?

FabianLars avatar Sep 21 '25 15:09 FabianLars

✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 140.0.3485.81
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Enterprise 2022
    ✔ rustc: 1.86.0 (05f9846f8 2025-03-31)
    ✔ cargo: 1.86.0 (adf9b6ad1 2025-02-28)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 22.11.0
    - pnpm: 9.14.2
    - npm: 10.9.0
    - bun: 1.2.18

[-] Packages
    - tauri 🦀: 2.8.5
    - tauri-build 🦀: 2.4.1
    - wry 🦀: 0.53.3
    - tao 🦀: 0.34.3
    - tauri-cli 🦀: 2.2.7

[-] Plugins
    - tauri-plugin-shell 🦀: 2.3.1
    - tauri-plugin-log 🦀: 2.7.0
    - tauri-plugin-fs 🦀: 2.4.2
    - tauri-plugin-dialog 🦀: 2.4.0
    - tauri-plugin-http 🦀: 2.5.2
    - tauri-plugin-updater 🦀: 2.4.0
    - tauri-plugin-store 🦀: 2.4.0
    - tauri-plugin-process 🦀: 2.2.0
    - tauri-plugin-deep-link 🦀: 2.4.3
    - tauri-plugin-os 🦀: 2.3.1
    - tauri-plugin-websocket 🦀: 2.4.0
    - tauri-plugin-single-instance 🦀: 2.3.4
    - tauri-plugin-autostart 🦀: 2.5.0
    - tauri-plugin-opener 🦀: 2.5.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://127.0.0.1:3000/

alexiokay avatar Sep 21 '25 17:09 alexiokay

So just from guessing on common causes, maybe you updated rust side and JavaScript of the updater plugin separately so that they are on different versions?

Legend-Master avatar Sep 24 '25 06:09 Legend-Master

Both the plugins are up to date, why would they be uncompatible

alexiokay avatar Sep 24 '25 08:09 alexiokay

Was asking because tauri info says your updater plugin is on 2.4.0 while you said it doesn't work on 2.9 and works on 2.5.1, this is really a common problem, and the behavior feels really like that

Legend-Master avatar Sep 24 '25 08:09 Legend-Master