-
Notifications
You must be signed in to change notification settings - Fork 490
Open
Description
Contact Details
security-automation@local
This bug is related to UI or API?
UI
What happened?
After deployment, homepage can render blank in browser. F12 console shows:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'status')
Root cause is in frontend global request interceptor (cmdb-ui/src/utils/request.js):
- code path uses
error.response.statuswithout guarding whenerror.responseis undefined - this happens on network failures / CORS / backend-not-ready cases, causing uncaught runtime exception and white page
Expected behavior:
- interceptor must safely handle missing
error.responseanderror.config - UI should show generic request error and continue rendering instead of crashing
Fix submitted:
- normalized
response/config/statusaccess with safe defaults - replaced direct chained access to guarded variables
- adjusted route/path read to avoid undefined property access
Patch commit:
2dd019c47(fix(ui): guard axios error object access to prevent blank-page crash)
PR containing fix:
Version
newest
What browsers are you seeing the problem on?
Chrome
Relevant log output
app.ea91c363.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'status')
at v (app.ea91c363.js:1:2247617)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels