From 71e90f9b908e04b4d52cbbc4d47663b725af02fd Mon Sep 17 00:00:00 2001 From: David Montero Date: Mon, 4 May 2026 15:32:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(compile):=20bump=20frontend=20axios=20timeo?= =?UTF-8?q?ut=20180s=20=E2=86=92=20600s=20for=20ESP-IDF=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cold ESP-IDF builds (esp32, esp32-c3, esp32-cam) routinely take 5-10 minutes the first time a project is compiled. The 180s axios timeout on POST /api/compile/ was cutting the connection long before the backend finished, surfacing as the misleading 'No response from server. Is the backend running on port 8001?' error. Bumping the client timeout to 600s aligns with the nginx proxy_read_timeout (also 600s) so the chain end-to-end is consistent. Arduino sketches still compile in seconds — the timeout is an upper bound, not a delay. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/services/compilation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/services/compilation.ts b/frontend/src/services/compilation.ts index f31ed6f4..ee920552 100644 --- a/frontend/src/services/compilation.ts +++ b/frontend/src/services/compilation.ts @@ -35,7 +35,7 @@ export async function compileCode( const response = await axios.post( `${API_BASE}/compile/`, { files, board_fqbn: board, project_id: projectId ?? null }, - { withCredentials: true, timeout: 180000 }, + { withCredentials: true, timeout: 600000 }, ); console.log('Compilation response status:', response.status);