Closed martian0x80 closed 6 months ago
The exception can be narrowed down to this:
We need to discuss a common solution to this, that is if the API response needs to follow a specific pattern. Currently the response by the API is just a single message that says:
{
"message": "Student ki jankaari nahi mili, bhai"
}
lol
🔫 @martian0x80 shuuu
Sentry Issue: IPUSENPAI-T
fixed
Description:
Currently, this is the most common issue according to Sentry, writing an invalid enrollment number in /student results in a client side exception.
Failed to fetch data. URL: https://api.ipusenpai.in/student/03816491522
To reproduce:
Go to https://ipusenpai.in/student/03816491522
Expected behaviour:
Should not raise a client side exception, and pop a new dialog or a toast (https://ui.shadcn.com/docs/components/sonner) with a message about the invalid/non-existing enrollment no.