LakshayGMZ / ipuSenpai

A modern, open-source, beautifully designed, ready-to-use academic leaderboard for IPU students.
https://ipusenpai.in
GNU General Public License v3.0
21 stars 6 forks source link

Handle case when the name in /search contains non-ascii letters #38

Closed martian0x80 closed 6 months ago

martian0x80 commented 6 months ago

Description:

Using a name with non-ascii letters results in an empty response in the current API release. But, the next release will throw a BadRequest (400) status code which results in a infinite loop with the loader.

Expected Behaviour:

Text box should not allow any non-ASCII chars, and if it does, it should handle the BadRequest status code.

LakshayGMZ commented 6 months ago

fixed