-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Jikan returns 404 for some recently added anime #378
Comments
It is recommended to sanity check with: https://dbsentinel.sean.fish/ |
@irfan-dahir One preventative change I can think of to partially resolve this issue is to update the error message to be more informative as we can't do too much about the upstream responses.
|
This should be resolved now since we only return approved entries now by default. I can't reproduce it anymore either. We're also running sanity by removing deleted entries on a daily basis via mal-id-cache Let me know if it still persists though, otherwise, I think we can go ahead and close this issue. @JoshuaWalsh cc: @pushrbx To answer some questions:
Yes. 404 is cached on the master server for 5m where we also cache the HTTP response (before parsing) for 6 hours. I think we can reduce that 6 hours and probably prevent anything stale from being served at that level.
Yes |
Unfortunately, I was able to reproduce this recently. However in a slightly different manner. This is definitely a caching issue. I need to figure out where. Leaving the ticket open until then. |
Updating caching on multiple levels. 404 is now only cached for 1 hour. Turned off proxy_cache_revalidate, serving of stale cache on 404, and proxy cache background updates on nginx - I think they were causing the issue as well. But let's see 馃 |
Is there an existing issue for this?
Current Behavior
For anime that's been very recently added to MAL, Jikan returns a 404 error. The response body for
https://api.jikan.moe/v4/anime/55312/full
says:But accessing https://myanimelist.net/anime/55312/ works, it returns 200. Strangely, show 55315 was added more recently and does not return 404. Until recently I was also getting this issue for anime 55302.
This is a bit of a problem because users can add the show to their animelist, but I can't retrieve any details about it.
Expected Behavior
Since the anime exists, Jikan should return 200 with the details.
Steps To Reproduce
Look at the recently added anime list: https://myanimelist.net/anime.php?o=9&c%5B0%5D=a&c%5B1%5D=d&cv=2&w=1
Try requesting details about recently added anime. Hopefully one of them allows you to repro the issue.
Environment
Anything else?
Is Jikan caching 404 errors to avoid unnecessary upstream requests?
How is Jikan getting a 404 error to cache in the first place? Are there circumstances were MAL will return 404 even though an anime already exists? (E.g. pending anime?)
Are there users of Jikan polling non-existent show IDs in order to find the newest added shows?
The text was updated successfully, but these errors were encountered: