🐛 Bug: Failed to fetch vulnerabilities from OpenSCA server (code 500003)
Description
When running OpenSCA CLI scan, the client fails to retrieve vulnerability and license data from the server API.
The scan completes successfully but reports 0 vulnerabilities, which appears to be incorrect because the server request returns an error.
Logs
[INFO] prepare report
[INFO] load 0 vulnerability
[INFO] get server vuln
[WARN] url:https://opensca.xmirror.cn/oss-saas/api-v1/open-sca-client/detect code:500003 message: 操作失败
[INFO] get server license
[WARN] url:https://opensca.xmirror.cn/oss-saas/api-v1/open-sca-client/detect code:500003 message: 操作失败
[INFO] calculate indirect vuln
[WARN] database origin error: 操作失败
[INFO] result save to out.json
Complete!
Components:16941 C:0 H:0 M:0 L:0
Vulnerabilities:0 C:0 H:0 M:0 L:0
Expected Behavior
- The client should successfully retrieve vulnerability and license data from the server
- Or at least return a clear error instead of reporting
0 vulnerabilities
Actual Behavior
Environment
- OpenSCA CLI version: 3.0.10
- Deployment method: Docker
- OS: Linux
- Network: internal network
Steps to Reproduce
- Run OpenSCA scan (via Docker or CLI)
- Observe logs when fetching server data
- See API failure and empty vulnerability result
Additional Context
- Network connectivity to
opensca.xmirror.cn is normal
- The issue seems to be related to server-side API (
/detect) returning error 500003
- This results in misleading scan output (0 vulnerabilities)
Questions
- What does error code
500003 mean?
- Is this a known issue or service instability?
- Is there a fallback or offline mode recommended?
Suggestion
- Return a clear failure status instead of
0 vulnerabilities
- Provide better error message or retry mechanism
🐛 Bug: Failed to fetch vulnerabilities from OpenSCA server (code 500003)
Description
When running OpenSCA CLI scan, the client fails to retrieve vulnerability and license data from the server API.
The scan completes successfully but reports 0 vulnerabilities, which appears to be incorrect because the server request returns an error.
Logs
Expected Behavior
0 vulnerabilitiesActual Behavior
Server API returns:
No vulnerability data is returned
Final report shows:
which is misleading
Environment
Steps to Reproduce
Additional Context
opensca.xmirror.cnis normal/detect) returning error500003Questions
500003mean?Suggestion
0 vulnerabilities