diff options
-rw-r--r-- | continuedev/src/continuedev/libs/llm/proxy_server.py | 2 | ||||
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/continuedev/src/continuedev/libs/llm/proxy_server.py b/continuedev/src/continuedev/libs/llm/proxy_server.py index 1a48f213..fd8210e9 100644 --- a/continuedev/src/continuedev/libs/llm/proxy_server.py +++ b/continuedev/src/continuedev/libs/llm/proxy_server.py @@ -109,7 +109,7 @@ class ProxyServer(LLM): if "content" in loaded_chunk: completion += loaded_chunk["content"] except Exception as e: - posthog_logger.capture_event(self.unique_id, "proxy_server_parse_error", { + posthog_logger.capture_event("proxy_server_parse_error", { "error_title": "Proxy server stream_chat parsing failed", "error_message": '\n'.join(traceback.format_exception(e))}) else: break diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 32dfa52f..d41cb289 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -237,9 +237,11 @@ export async function startContinuePythonServer() { }); child.on("error", (err: any) => { - if (err.code === "EBUSY" && attempts < maxAttempts) { + if (attempts < maxAttempts) { attempts++; - console.log(`EBUSY error caught. Retrying attempt ${attempts}...`); + console.log( + `Error caught (likely EBUSY). Retrying attempt ${attempts}...` + ); setTimeout(spawnChild, delay); } else { console.error("Failed to start subprocess.", err); |