agentscope-ai / agentscope-ai/QwenPaw
[Bug]:Daily Paper fails silently when arxiv.org is unreachable — no proxy/endpoint config, error message hides real cause
- Dominant language
- Python
- Stars
- 34.9k
- Forks
- 3.1k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 225
Description
### Environment
- QwenPaw Desktop v2.2.1-beta.2 (Windows 10 x64)
- Component: ReMe Daily Paper plugin (`reme_daily_paper`)
### Problem
The Daily Paper memory cron job fails every day with a misleading "completed with no returned content" message in the inbox, while the actual error is an `httpx.ConnectError` during TLS handshake to `arxiv.org`.
### Reproduction
1. Use QwenPaw Desktop in a network environment where arxiv.org TLS connections are reset (SNI-based filtering — common in mainland China without a VPN)
2. Wait for the Daily Paper cron to fire (or trigger it manually)
3. Inbox shows: `Daily Paper completed with no returned content` (status: error)
### Error log (desktop.log)
```
Traceback (most recent call last):
File "reme\components\job\base_job.py", line 74, in __call__
File "reme\steps\base_step.py", line 148, in __call__
File "reme_daily_paper\analyze.py", line 193, in execute
File "reme_daily_paper\analyze.py", line 87, in _analyze_one
File "reme_daily_paper\arxiv.py", line 77, in download
File "contextlib.py", line 210, in __aenter__
File "httpx\_client.py", line 1583, in stream
...
httpx.ConnectError: [WinError 10054] An existing connection was forcibly closed by the remote host.
```
### Root cause
TCP connection to `arxiv.org:443` succeeds, but the TLS handshake is reset (SNI field detected and RST'd by network filtering). Browsers with ECH (Encrypted Client Hello) support can bypass this, but `httpx` does not support ECH, so the Daily Paper plugin cannot connect.
### Two improvement requests
**1. Bug — error message hides the real cause (high impact)**
The inbox message "completed with no returned content" gives users zero diagnostic information. It should surface the actual exception, e.g.:
> `Daily Paper failed: ConnectError — arxiv.org unreachable (TLS handshake reset)`
This would save users from having to dig through `desktop.log` to understand why the feature stopped working.
**2. Feature — configurable arxiv endpoint / proxy support**
QwenPaw already provides `HF_ENDPOINT` for HuggingFace mirror configuration. A similar approach for the Daily Paper plugin would allow users in restricted network environments to point to an accessible arxiv mirror or proxy:
```bash
# Example: point to a mirror or proxy
ARXIV_ENDPOINT=https://mirror.example.com/arxiv
# or respect standard proxy env vars
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
```
This is especially relevant since QwenPaw is developed by a Chinese team (Alibaba/Qwen) and many users are in mainland China where arxiv.org connectivity is unreliable.
---
*This issue was drafted with the assistance of an AI agent (QwenPaw) and reviewed by the reporter before submission. [#4333]*
Contributor guide
Assessment
This issue has not been assessed yet.