From 940f64bedbbd326b9fc5fae963c6f8e1d67337a9 Mon Sep 17 00:00:00 2001 From: Minz Date: Mon, 5 Jun 2023 16:25:32 +0200 Subject: [PATCH] Increase timeout to 4 seconds --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7b9b9cb..a633f3d 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,7 @@ let consecutiveFailures = 0; async function pingEndpoint() { try { // Send a GET request to the API endpoint - const response = await axios({ url: apiUrl, timeout: 1000, method: 'get' }); + const response = await axios({ url: apiUrl, timeout: 5000, method: 'get' }); // Check if the response status is successful (2xx) if (response.status === 200) {