From 61d836cb7c37f016bb8d2c624ecdbd3598fa4fc6 Mon Sep 17 00:00:00 2001 From: Akendo Date: Sat, 22 Mar 2025 23:13:04 +0100 Subject: [PATCH] Reduce timeout to 10 secounds. --- lib/api_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api_service.dart b/lib/api_service.dart index 384a5726..01f77493 100644 --- a/lib/api_service.dart +++ b/lib/api_service.dart @@ -76,7 +76,7 @@ Future> fetchTasks(String uuid, String encryptionSecret) async { var response = await http.get(Uri.parse(url), headers: { "Content-Type": "application/json", - }).timeout(const Duration(seconds: 10000)); + }).timeout(const Duration(seconds: 10)); if (response.statusCode == 200) { List allTasks = jsonDecode(response.body); debugPrint(allTasks.toString());