add: timeout back with correct fix.

This commit is contained in:
Darshan
2026-02-09 15:54:06 +05:30
parent fa6e8b8158
commit ccd43c9c2a
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -387,3 +387,6 @@ const COOKIE_NAME_PREVIEW = 'a_jwt_console';
// Cache Reconnect
const CACHE_RECONNECT_MAX_RETRIES = 2;
const CACHE_RECONNECT_RETRY_DELAY = 1000;
/* Web installer */
const LOCAL_API_TIMEOUT = 30 * 1000; // 30 seconds
+1 -1
View File
@@ -713,7 +713,7 @@ class Install extends Action
{
$client = new Client();
$client
->setTimeout(30)
->setTimeout(LOCAL_API_TIMEOUT)
->addHeader('Content-Type', 'application/json')
->addHeader('X-Appwrite-Project', 'console');