[bug]: Integrate Error Handling in API Requests #159
Labels
backend
bug
Something isn't working
DWOC'25
EASY
enhancement
New feature or request
goal: addition
IWOC2025
level2
priority: high
Description
Currently, the API requests do not have proper error handling. This can lead to a poor user experience, especially when something goes wrong with the API or when the user encounters issues such as incorrect login credentials. We need to implement robust error handling to provide meaningful feedback to users.
Steps to Reproduce:
Review the API request logic in both the frontend and backend.
Implement error handling for all API calls to catch errors and display appropriate user-friendly messages.
For instance, display a "Login failed" message for incorrect login attempts or a "Server error" message if the backend is unavailable.
Ensure that error messages are displayed in a user-friendly format, and users are guided on what to do next (e.g., "Try again later" or "Please check your credentials").
Test various error scenarios (e.g., incorrect credentials, network failure, server issues).
Expected Outcome:
Clear, user-friendly error messages for all API requests.
Users should receive proper feedback when something goes wrong (e.g., incorrect credentials or server issues).
Implementation Details (optional)
No response
Screenshots
No response
Checklist
The text was updated successfully, but these errors were encountered: