We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c48605 commit c6ab9baCopy full SHA for c6ab9ba
1 file changed
src/utils/manage.ts
@@ -26,15 +26,14 @@ async function fetchHealth(): Promise<boolean> {
26
}
27
async function fetchLocalStackSessionId(): Promise<string> {
28
// retry a few times to allow LocalStack to start up and info become available
29
- for (let attempt = 0; attempt < 5; attempt++) {
+ for (let attempt = 0; attempt < 10; attempt++) {
30
try {
31
const response = await fetch("http://127.0.0.1:4566/_localstack/info");
32
if (response.ok) {
33
const json = await response.json();
34
if (typeof json === "object" && json !== null && "session_id" in json) {
35
return (json as { session_id?: string }).session_id ?? "";
36
37
- return "";
38
39
} catch {
40
// ignore error and retry
0 commit comments