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 #535

Closed irfan-dahir closed 8 months ago

irfan-dahir commented 8 months ago

Is there an existing issue for this?

Current Behavior

No response

Expected Behavior

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

Steps To Reproduce

Http Request: `GET /v4/manga/143751

Environment

No response

Anything else?

As reported on discord: https://discord.com/channels/460491088004907029/1163633893933580318

irfan-dahir commented 8 months ago

image MAL can return empty title synonyms. This is an edge case on an unapproved entry. I'm not making titles nullable, will just return an empty string instead on the API to maintain BC.