diff --git a/ui/src/routes/devices.$id.settings.advanced.tsx b/ui/src/routes/devices.$id.settings.advanced.tsx index 3f366ee7..71084c1a 100644 --- a/ui/src/routes/devices.$id.settings.advanced.tsx +++ b/ui/src/routes/devices.$id.settings.advanced.tsx @@ -208,7 +208,6 @@ export default function SettingsAdvancedRoute() { versionInfo = await checkUpdateComponents({ components, }, devChannel); - console.log("versionInfo", versionInfo); } catch (error: unknown) { const jsonRpcError = error as JsonRpcError; handleVersionUpdateError(jsonRpcError); diff --git a/ui/src/utils/jsonrpc.ts b/ui/src/utils/jsonrpc.ts index c6f9e899..d67b5c2f 100644 --- a/ui/src/utils/jsonrpc.ts +++ b/ui/src/utils/jsonrpc.ts @@ -262,7 +262,10 @@ export async function checkUpdateComponents(params: updateParams, includePreRele params, includePreRelease, }, - maxAttempts: UPDATE_STATUS_RPC_MAX_ATTEMPTS, + // maxAttempts is set to 1, + // because it currently retry for all errors, + // and we don't want to retry if the error is not a network error + maxAttempts: 1, attemptTimeoutMs: UPDATE_STATUS_RPC_TIMEOUT_MS, }); if (response.error) throw response.error;