Closed einz-loggik closed 1 week ago
timeout
is specified in miliseconds and 5ms is an insanely short timeout realistically only usable on localhost. So, just to be sure, did you try larger values like 5000
(== 5 seconds) for example?
Ok so the bug is in the documentation, because the documentation says its in seconds, not milliseconds.
I will create a PR to update the documentation.
Thank you for the info.
Describe the bug
I really like Tauri, its really great. But it seems that i found a bug.
I try to use the check function of the updater with Javascript. This works perfectly fine.
const update = await check()
But as soon as i add a timeout i get a 'Unhandled Promise Rejection: Could not fetch a valid release JSON from the remote' error
const update = await check({ timeout: 5 })
The response from the server is the same in both cases.
Reproduction
Use the check function like in the second example
Expected behavior
The check function works the same as with no arguments and stops if the timeout is reached
Full
tauri info
outputStack trace
No response
Additional context
No response