jikan-me / jikan

Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
https://jikan.moe
MIT License
851 stars 94 forks source link

🐛 [OFFICIAL] Generated Issue: ParserException #540

Open irfan-dahir opened 8 months ago

irfan-dahir commented 8 months ago

Is there an existing issue for this?

Current Behavior

Sentry Report: https://jikan-ev.sentry.io/share/issue/215e6ac98e42452c90f4339598713c73/

Req: https://api.jikan.moe/v4/anime/31758/episodes/2 MAL: https://myanimelist.net/anime/5/_/episode/2

Episodes pages that do not exist for anime do not return 404. Instead they return HTTP 200 w/o any listing. Should be a quick fix with a node empty check and empty array return.

Expected Behavior

The API should have returned a successful response with data.¤tbehavior=The API has returned an error: Jikan\Exception\ParserException Status code: 0 Message: ```Failed to parse 'https://myanimelist.net/anime/31758//episode/2' Trace:/var/www/jikan-rest/vendor/jikan-me/jikan/src/Exception/ParserException.php on line 24```

Steps To Reproduce

Http Request: `GET /v4/anime/31758/episodes/2

Environment

No response

Anything else?

No response