Increase timeout to 4 seconds

This commit is contained in:
Minz authored and GitHub committed 2023-06-05 16:25:32 +02:00
1 parent e0eff18d6c
commit 940f64bedb
1 file changed
+1 -1
+1 -1
View File
@@ -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) {