Bug Description
When submitting a retina scan for analysis from the /upload page, the application crashes with an unhandled Failed to fetch error and displays the Next.js error overlay instead of showing a user-friendly error state.
Steps to Reproduce
- Navigate to
/upload
- Fill patient details
- Upload an image
- Click
Execute Analysis
- Observe the frontend crash and console error
Expected Behavior
The application should gracefully handle failed API requests by:
- displaying a proper error message/toast
- preventing the app from crashing
- optionally allowing retry functionality
Actual Behavior
The frontend throws an unhandled TypeError: Failed to fetch, exposing the Next.js development error overlay and interrupting the user experience.
Possible Fix
Add proper try/catch handling around the upload request and display a fallback UI or toast notification when the backend/API request fails.
I'd like to work on this issue under GSSoC'26.
Bug Description
When submitting a retina scan for analysis from the
/uploadpage, the application crashes with an unhandledFailed to fetcherror and displays the Next.js error overlay instead of showing a user-friendly error state.Steps to Reproduce
/uploadExecute AnalysisExpected Behavior
The application should gracefully handle failed API requests by:
Actual Behavior
The frontend throws an unhandled
TypeError: Failed to fetch, exposing the Next.js development error overlay and interrupting the user experience.Possible Fix
Add proper try/catch handling around the upload request and display a fallback UI or toast notification when the backend/API request fails.
I'd like to work on this issue under GSSoC'26.