Fix: Add axios timeout

This commit is contained in:
Nelson Chan 2021-07-19 18:04:44 +08:00
parent 7df13b440a
commit 274314c5e5

View file

@ -95,6 +95,7 @@ class Monitor extends BeanModel {
"User-Agent": "Uptime-Kuma", "User-Agent": "Uptime-Kuma",
host: targetUrl.hostname, host: targetUrl.hostname,
}, },
timeout: 3000,
} }
); );
} catch (error) { } catch (error) {