Console Errors vs Network Errors vs UI Issues
Rihario categorizes issues into three types: console errors (JavaScript problems), network errors (API/request failures), and UI issues (visual/layout problems). Understanding the difference helps you prioritize fixes and know where to look for solutions.
Console Errors
What They Are
Console errors are JavaScript errors logged to the browser console:
- JavaScript exceptions
- Type errors, reference errors, etc.
- Runtime errors in your code
- Third-party library errors
Common Examples
Cannot read property 'value' of nullUncaught TypeError: ... is not a functionFailed to load resourceUnhandled promise rejection
What They Indicate
Console errors usually mean:
- Bug in your code - Something broke in JavaScript
- Missing dependency - Library or resource failed to load
- Runtime error - Code executed but hit an error
Network Errors
What They Are
Network errors are failed HTTP requests:
- API requests that failed
- 404 Not Found errors
- 500 Server errors
- Timeout errors
- CORS errors
Common Examples
404 Not Found- Resource doesn't exist500 Internal Server Error- Server errorNetwork timeout- Request took too longCORS policy blocked- Cross-origin request blocked
What They Indicate
Network errors usually mean:
- Backend issue - API or server problem
- Missing resource - File or endpoint doesn't exist
- Infrastructure problem - Server down or slow
- Configuration issue - CORS or routing misconfigured
UI Issues
What They Are
UI issues are visual or layout problems:
- Broken layouts
- Overlapping elements
- Missing styles
- Visual regressions
- Responsive design issues
Common Examples
- Elements overlapping when they shouldn't
- Content cut off or overflowing
- Buttons not visible or clickable
- Forms with broken validation styling
- Text unreadable (low contrast)
What They Indicate
UI issues usually mean:
- CSS problem - Styles broken or missing
- Layout bug - CSS layout issue
- Responsive issue - Doesn't work on certain screen sizes
- Visual regression - Design changed unintentionally
Comparison Table
| Type | Location | Severity | Fix |
|---|---|---|---|
| Console Error | Browser console | High (breaks functionality) | Fix JavaScript code |
| Network Error | Network tab | High (breaks functionality) | Fix backend/API |
| UI Issue | Visual/rendered page | Medium (breaks UX) | Fix CSS/layout |
How to Fix Each Type
Fixing Console Errors
- Open browser DevTools console
- Reproduce the error
- Read the error message
- Check the stack trace
- Fix the JavaScript code
- Test the fix
Fixing Network Errors
- Open browser DevTools Network tab
- Find the failed request
- Check response status and body
- Fix the backend/API
- Check server logs
- Test the fix
Fixing UI Issues
- Review the screenshot
- Inspect the element in DevTools
- Check CSS styles
- Fix layout/CSS
- Test on different viewports
- Verify the fix
Priority
Generally, prioritize fixes in this order:
- Console errors - Break functionality, need immediate fix
- Network errors - Break functionality, need immediate fix
- UI issues - Break UX, but app still works
However, prioritize based on impact:
- High-impact UI issues - Might be more urgent than low-impact console errors
- Critical flows - Errors in checkout more urgent than errors in footer
- User-facing - UI issues visible to users might need quick fixes