Troubleshooting Guide
This guide helps you resolve common issues with the Production Inspection Form application.Login Issues
Invalid Credentials Error
Problem: Message “Credenciales inválidas” appears after login attempt. Solutions:- Verify you’re using your network credentials (not application-specific credentials)
- Check for typos in username and password
- Ensure CAPS LOCK is not enabled
- Try logging into another network resource to verify your credentials work
- Contact IT support if your account may be locked or expired
Login Error or Connection Failed
Problem: Message “Error al iniciar sesión” appears. Cause: Network connectivity issue or API server is unavailable. Solutions:- Check your network connection
- Verify the API server
http://10.107.194.110/insp/is accessible: - Check browser console (F12) for detailed error messages
- Try refreshing the page and logging in again
- If persistent, contact system administrator
The login endpoint is:
POST http://10.107.194.110/insp/api/login-ldap/Redirect Loop or Cannot Stay Logged In
Problem: You’re repeatedly redirected to login page even after successful authentication. Cause: LocalStorage is not functioning or being cleared. Solutions:- Check browser localStorage:
- Open Developer Tools (F12)
- Go to Application/Storage tab
- Check localStorage for
usuario_inspeccionkey
- Ensure browser is not in private/incognito mode
- Check browser settings allow localStorage for this domain
- Try a different browser to rule out browser-specific issues
- Clear all cookies and cache, then try logging in again
The application stores two localStorage items:
usuario_inspeccion: Your usernameusuario_nombre: Your full name
Form Loading Issues
Form Stuck on “Cargando formulario…”
Problem: The loading message never goes away. Cause: One or more API endpoints are not responding. Solutions:- Check browser console (F12) for network errors
- Verify API endpoints are accessible:
/api/divisiones//api/areas//api/zonas//api/equipos/
- Check network connectivity to
http://10.107.194.110/insp/ - Wait 30 seconds for timeout, then refresh the page
- Contact system administrator if server is down
Equipment Not Pre-Selected from URL
Problem: Equipment ID passed in URL parameter is not being selected. Example:/?equipo=123 doesn’t populate the form
Solutions:
- Verify the URL parameter format is correct:
?equipo=123 - Check browser console for “Error cargando equipo” message
- Verify the equipment ID exists in the database
- Ensure the
/api/equipos/endpoint returns valid data - Check that the equipment ID is a valid number
Inspection Questions Not Loading
Problem: The inspection checklist table is empty or not displaying. Cause: Equipment category is missing or questions API failed. Solutions:- Verify equipment has a valid
categoriafield - Check console for “Error cargando preguntas” message
- Verify the endpoint
/api/preguntas/{categoria}/is accessible - Ensure the category exists in the database
- Try selecting a different equipment to test
Questions are loaded dynamically based on equipment category. No category = no questions.
Form Submission Issues
”Error al enviar” Message
Problem: Submission fails with generic error message. Cause: Network issue or API server error. Solutions:- Check browser console for detailed error:
- Verify the
/api/guardar/endpoint is accessible - Check that all required fields are filled
- Verify your localStorage still contains
usuario_inspeccion - Try submitting again after a few seconds
- Check with administrator if API server is having issues
Form Doesn’t Submit / No Response
Problem: Clicking “Enviar” does nothing. Solutions:- Check if you’re still logged in (username shown in top-right?)
- Verify
usuario_inspeccionexists in localStorage - Check browser console for JavaScript errors
- Ensure at least one inspection question is answered
- Try refreshing the page and re-entering data
Data Not Resetting After Submission
Problem: Form doesn’t clear after successful submission. Expected behavior: After successful submit, form should:- Clear all input fields
- Reset técnicos responses
- Clear ubicación and categoría
- Empty the inspection questions array
- This indicates submission may have failed - check for success message
- Look for server response in Network tab (F12)
- Manually refresh the page to start fresh
- Report to administrator if issue persists
LocalStorage Issues
Lost Session After Page Refresh
Problem: You’re logged out after refreshing or closing the browser. Solutions:- Check if browser is clearing localStorage on exit
- Verify browser is not in private/incognito mode
- Check browser privacy settings
- Ensure no browser extensions are clearing storage
- Try a different browser
Wrong Username Displayed
Problem: Top-right shows incorrect username. Cause: Stale data in localStorage. Solutions:- Click “Cerrar Sesión” to logout
- Clear localStorage manually:
- Open Developer Tools (F12)
- Go to Application → Local Storage
- Delete
usuario_inspeccionandusuario_nombre
- Log in again with correct credentials
The displayed username comes from
localStorage.getItem('usuario_inspeccion')Browser Compatibility Issues
Styles Not Loading / Broken Layout
Problem: Form appears unstyled or broken. Solutions:- Verify CSS file is loading:
- Clear browser cache (Ctrl+Shift+Delete)
- Hard reload page (Ctrl+Shift+R)
- Check browser console for 404 errors on CSS files
- Try a different browser
JavaScript Errors
Problem: Form not interactive or components not working. Solutions:- Check browser console (F12) for JavaScript errors
- Verify all chunk files are loading:
webpack-*.jsmain-app-*.js- Page-specific chunks
- Clear browser cache and reload
- Disable browser extensions that might interfere
- Try a different browser (Chrome, Firefox, Edge recommended)
Mobile Display Issues
Problem: Form not responsive on mobile devices. Solutions:- Check viewport meta tag is present:
- Rotate device to landscape for better table visibility
- Use table horizontal scroll for inspection checklist
- Try using desktop mode in mobile browser settings
- Use a tablet or desktop for better experience
The inspection table has
overflow-x: auto for horizontal scrolling on small screens.Network and API Troubleshooting
All API Calls Failing
Problem: Nothing loads, multiple console errors. Cause: Cannot reach API server. Solutions:- Verify network connection
- Test API server accessibility:
- Check firewall settings
- Verify you’re on the correct network (VPN if remote)
- Contact network administrator
CORS or Mixed Content Errors
Problem: Browser blocks API requests with CORS or security errors. Solutions:- Verify application and API are on same protocol (both HTTP or both HTTPS)
- Check API server CORS configuration
- Ensure API allows requests from your domain
- Contact system administrator to configure CORS headers
Intermittent Connection Failures
Problem: Some API calls work, others fail randomly. Solutions:- Check network stability
- Verify API server is not overloaded
- Look for timeout errors in console
- Try during off-peak hours
- Report pattern to system administrator
Advanced Debugging
Using Browser DevTools
How to check Network requests
How to check Network requests
- Open Developer Tools (F12)
- Go to Network tab
- Reload the page
- Look for API requests to
10.107.194.110 - Check status codes:
- 200: Success
- 401: Unauthorized
- 404: Not found
- 500: Server error
- Click on request to see request/response details
How to check LocalStorage
How to check LocalStorage
- Open Developer Tools (F12)
- Go to Application tab (Chrome) or Storage tab (Firefox)
- Expand Local Storage in left sidebar
- Select your domain
- Look for:
usuario_inspeccionusuario_nombreredirect_after_login
How to check Console errors
How to check Console errors
- Open Developer Tools (F12)
- Go to Console tab
- Look for red error messages
- Common errors to look for:
Error cargando preguntasError cargando equipoError al enviarError al iniciar sesión- Network/fetch errors
- Copy error message for support team
Common Console Error Messages
| Error Message | Meaning | Solution |
|---|---|---|
Error cargando preguntas | Questions API failed | Check equipment category and API endpoint |
Error cargando equipo | Equipment API failed | Verify equipment ID and API endpoint |
Error al enviar | Form submission failed | Check network and /api/guardar/ endpoint |
Error al iniciar sesión | Login API failed | Check credentials and network |
Credenciales inválidas | Wrong username/password | Verify LDAP credentials |
Formulario enviado correctamente | Success! | This is a success message |
Getting Additional Help
If you continue to experience issues after trying these solutions:
- Note the exact error message
- Check browser console for technical details
- Document the steps to reproduce the issue
- Contact your system administrator with:
- Error message
- Browser and version
- Network details
- Console error logs
