- tweaked timeouts

This commit is contained in:
2025-11-10 13:47:19 +00:00
parent feddaa1eb0
commit cac9a2167d
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ export async function handleSystemRecall() {
const url = `${camBase}/api/fetch-config?id=GLOBAL--Device`;
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 7000);
const timeoutId = setTimeout(() => controller.abort(), 70000);
try {
const response = await fetch(url, {

View File

@@ -7,7 +7,7 @@ const camBase = import.meta.env.MODE !== "development" ? CAM_BASE : "";
const getWiFiSettings = async () => {
const response = await fetch(`${camBase}/api/fetch-config?id=ModemAndWifiManager-wifi`, {
signal: AbortSignal.timeout(300000),
signal: AbortSignal.timeout(600000),
});
if (!response.ok) {
throw new Error("Cannot fetch Wifi settings");
@@ -29,7 +29,7 @@ const updateWifiSettings = async (wifiConfig: WifiConfig) => {
const getModemSettings = async () => {
const response = await fetch(`${camBase}/api/fetch-config?id=ModemAndWifiManager-modem`, {
signal: AbortSignal.timeout(300000),
signal: AbortSignal.timeout(600000),
});
if (!response.ok) {
throw new Error("Cannot fetch modem settings");