- tweaked timeouts
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user