Bug Report: Recurring "Duplicate request id" Error
Environment
- OS: Windows 25H2
- Location: India (IST timezone)
- AccountID: 183012 (from qodercli.log)
- Qoder Version: Latest
Error Message
error: code = 103 message = {"code":"103","message":"Duplicate request"} details = []
Root Cause (confirmed)
cache.json persists regionEnv = "cn" (China) for users in India.
Failure chain:
regionEnv = "cn" — India user routed to China NES node
- NES latency spikes to 400ms+
- Client times out, retries same request
- Server receives duplicate request IDs, returns error code 103
Cache File Evidence
Before fix (cache.json):
- regionEnv: cn
- NES latency: 193 ms
- Inference latency: 192 ms
- Center latency: 170 ms
After manual cache clear:
- regionEnv: '' (reset, re-probed on next start)
Fix log:
[2026-05-18 15:05:06] cleared cache.json regionEnv=cn->''
[2026-05-18 15:05:06] cleared config.json env=local->''
[2026-05-18 15:05:06] cleared region-config-cache.json
[2026-05-18 15:05:06] network: api2=PASS center=PASS
Affected Files
- %APPDATA%\Qoder\SharedClientCache\cache\cache.json — regionEnv sticks as "cn"
- %APPDATA%\Qoder\SharedClientCache\cache\config.json — env sticks as "local"
- %APPDATA%\Qoder\User\region-config-cache.json — stale node endpoints
Frequency
Recurring — happens repeatedly, requires manual cache clearing each time.
Requested Fix
- Auto-detect stale regionEnv on startup — re-probe if cached region mismatches IP geolocation
- Invalidate region cache when latency exceeds ~300ms threshold
- Add a "Reset Region / Re-probe Servers" button in Settings UI
Bug Report: Recurring "Duplicate request id" Error
Environment
Error Message
Root Cause (confirmed)
cache.jsonpersistsregionEnv = "cn"(China) for users in India.Failure chain:
regionEnv = "cn"— India user routed to China NES nodeCache File Evidence
Before fix (cache.json):
After manual cache clear:
Fix log:
[2026-05-18 15:05:06] cleared cache.json regionEnv=cn->''
[2026-05-18 15:05:06] cleared config.json env=local->''
[2026-05-18 15:05:06] cleared region-config-cache.json
[2026-05-18 15:05:06] network: api2=PASS center=PASS
Affected Files
Frequency
Recurring — happens repeatedly, requires manual cache clearing each time.
Requested Fix