Fix some of the Jikan entries not working - #69
Open
stefan9999991 wants to merge 2 commits into
Open
Conversation
This was referenced Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Jikan api has been having issues for a few days now, and I found some improvements that makes entries work that didn't work before.
For example:
GET https://api.jikan.moe/v4/anime/38671returns a504 {"status":504,"type":"BadResponseException","message":"Jikan failed to connect to MyAnimeList. MyAnimeList may be down\\/unavailable or refuses to connect","error":null}However,
GET https://api.jikan.moe/v4/anime/38671withAccept-Encoding: gzip, deflate, br, zstdreturns a 200 with a valid response.After further testing, it is only this exact
Accept-Encodingstring that works. Changing the order or removing one of the encodings causes a504again.Furthermore, some projects, like MALClient use Xamarin that automatically use
HTTP/2.0, however Jikan doesn't supportHTTP/2.0. That's why I also added an intercepter that forced requests to useHTTP/1.1, regardless of the usedHttpClientIn my testing, these fixes caused 9/10 requests that failed before to work again, however still not all work. However, for now this makes the library a lot more usable again :)