Increase timeout to 4 seconds

This commit is contained in:
2023-06-05 16:25:32 +02:00
committed by GitHub
parent e0eff18d6c
commit 940f64bedb

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) {