From 9352ba17e97ffc1f9b50af1f01fd4581d85d18c2 Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Tue, 23 Dec 2025 15:21:15 +0530 Subject: [PATCH] fix timeouts --- app/controllers/api/avatars.php | 2 +- src/Appwrite/Platform/Modules/Functions/Workers/Builds.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 4a97118853..b4f75a9ee5 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -697,7 +697,7 @@ App::get('/v1/avatars/screenshots') } $client = new Client(); - $client->setTimeout(30); + $client->setTimeout(30 * 1000); // 30 seconds $client->addHeader('content-type', Client::CONTENT_TYPE_APPLICATION_JSON); // Convert indexed array to empty array (should not happen due to Assoc validator) diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index 1d202b4948..e38a56bd2b 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -939,7 +939,7 @@ class Builds extends Action } $client = new FetchClient(); - $client->setTimeout(\intval($resource->getAttribute('timeout', '15'))); + $client->setTimeout(\intval($resource->getAttribute('timeout', '15')) * 1000); $client->addHeader('content-type', FetchClient::CONTENT_TYPE_APPLICATION_JSON); $bucket = Authorization::skip(fn () => $dbForPlatform->getDocument('buckets', 'screenshots'));