thrownewError(`Failed to connect to WG API at ${this.baseUrl}. Please check if the backend is running and WG_API_URL is correct. Original error: ${error.message}`)
continue
}
}
// Re-throw other errors
throwerror
}
}
// All URLs failed
thrownewError(`Failed to connect to WG API. Tried: ${possibleUrls.join(', ')}. Last error: ${lastError?.message||'Unknown error'}`)