From 59ef1f13db15a04d9791568a3bc7c8af75181d59 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 9 Aug 2021 13:54:24 +0800 Subject: [PATCH] set longer timeout for axios request --- server/model/monitor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/model/monitor.js b/server/model/monitor.js index c440d8c8..7c72fb25 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -110,6 +110,7 @@ class Monitor extends BeanModel { // Use Custom agent to disable session reuse // https://github.com/nodejs/node/issues/3940 let res = await axios.get(this.url, { + timeout: 15000, headers: { "User-Agent": "Uptime-Kuma", },