Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli/src/commands/teleport.ts
Comment thread
Shaarson marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ async function importViaHttp(
"Content-Type": "application/octet-stream",
},
body: new Blob([bundleData]),
signal: AbortSignal.timeout(120_000),
signal: AbortSignal.timeout(300_000),
});

// Retry once with a fresh token on 401
Expand All @@ -446,13 +446,13 @@ async function importViaHttp(
"Content-Type": "application/octet-stream",
},
body: new Blob([bundleData]),
signal: AbortSignal.timeout(120_000),
signal: AbortSignal.timeout(300_000),
});
}
}
} catch (err) {
if (err instanceof Error && err.name === "TimeoutError") {
console.error("Error: Import request timed out after 2 minutes.");
console.error("Error: Import request timed out after 5 minutes.");
process.exit(1);
}
const msg = err instanceof Error ? err.message : String(err);
Expand Down Expand Up @@ -706,7 +706,7 @@ async function importToAssistant(
: await platformImportBundle(bundleData, token, entry.runtimeUrl);
} catch (err) {
if (err instanceof Error && err.name === "TimeoutError") {
console.error("Error: Import request timed out after 2 minutes.");
console.error("Error: Import request timed out after 5 minutes.");
process.exit(1);
}
throw err;
Expand Down
4 changes: 2 additions & 2 deletions cli/src/lib/platform-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export async function platformImportBundle(
"Content-Type": "application/octet-stream",
},
body: new Blob([bundleData]),
signal: AbortSignal.timeout(120_000),
signal: AbortSignal.timeout(300_000),
Comment thread
Shaarson marked this conversation as resolved.
});

const body = (await response.json().catch(() => ({}))) as Record<
Expand Down Expand Up @@ -529,7 +529,7 @@ export async function platformImportBundleFromGcs(
method: "POST",
headers: await authHeaders(token, platformUrl),
body: JSON.stringify({ bundle_key: bundleKey }),
signal: AbortSignal.timeout(120_000),
signal: AbortSignal.timeout(300_000),
},
);

Expand Down