Closed R1nge closed 8 months ago
I have found the problem in https://github.com/rocktimsaikia/animechan/blob/main/server/controller/index.ts
Basically, getRandomQuoteByAnime is missing this check
if (isEmpty(randomQuote)) {
return res.status(StatusCodes.NOT_FOUND).json({
error: 'No related quotes found!',
});
}
When trying to access an invalid character name an error is returned https://animechan.xyz/api/random/character?name=saitamaA Will return a response with an error "No related quotes found!" But, it returns nothing with an invalid title query https://animechan.xyz/api/random/anime?title=narutoO Will return nothing