Skip to content

Fix news source fetching on Windows#121

Merged
Zhang-Henry merged 2 commits intoOpenLAIR:mainfrom
r1ng13:fix/windows-news-runtime
Apr 4, 2026
Merged

Fix news source fetching on Windows#121
Zhang-Henry merged 2 commits intoOpenLAIR:mainfrom
r1ng13:fix/windows-news-runtime

Conversation

@r1ng13
Copy link
Copy Markdown
Contributor

@r1ng13 r1ng13 commented Apr 2, 2026

Summary

  • resolve a usable Python runtime dynamically instead of assuming python3
  • prefer Python runtimes with a usable CA bundle on Windows
  • use explicit SSL/certificate handling for arXiv and HuggingFace requests
  • read JSON configs with UTF-8 BOM support
  • emit ASCII-safe JSON to avoid Windows encoding issues
  • harden command-availability checks for Windows exit codes

Testing

  • npm.cmd run typecheck
  • python -m py_compile server\scripts\research-news\search_arxiv.py server\scripts\research-news\search_huggingface.py
    server\scripts\research-news\search_x.py server\scripts\research-news\search_xiaohongshu.py
  • node --check server\routes\news.js
  • node --check server\utils\cliResolution.js

@r1ng13 r1ng13 force-pushed the fix/windows-news-runtime branch from 6532bff to 5883ef0 Compare April 2, 2026 04:59
@Zhang-Henry Zhang-Henry merged commit 5ef1370 into OpenLAIR:main Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants