Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix: github zip download timeout (#463)

MaojiaSheng988a5163b26e
diff --git a/openviking/parse/parsers/code/code.py b/openviking/parse/parsers/code/code.py
index 3bd06d7c8..d7270babc 100644
--- a/openviking/parse/parsers/code/code.py
+++ b/openviking/parse/parsers/code/code.py
@@ -372,7 +372,7 @@ class CodeRepositoryParser(BaseParser):
# Download (blocking HTTP; run in thread pool to avoid stalling event loop).
def _download() -> None:
req = urllib.request.Request(zip_url, headers={"User-Agent": "OpenViking"})
- with urllib.request.urlopen(req) as resp, open(zip_path, "wb") as f:
+ with urllib.request.urlopen(req, timeout=1800) as resp, open(zip_path, "wb") as f:
shutil.copyfileobj(resp, f)
try: