ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

AA_CRYPTO_MISSING returned by episode() API on 4.15.1 (fix branch)

Open garvitkushwaha-iitr opened this issue 4 months ago • 4 comments

Problem

Selecting any episode results in:

Specified quality not found, defaulting to best Episode is released, but no valid sources!

Root cause (found via bash -x)

The episode-source GraphQL query returns an explicit error instead of source URLs:

{"errors":[{"message":"AA_CRYPTO_MISSING","locations":[{"line":1,"column":102}],"path":["episode"],"extensions":{"code":"AA_CRYPTO_MISSING"}}],"data":{"episode":null}}

This happens on both the persisted-query request and the fallback raw-query request. Search and episode-listing queries succeed normally — only the episode() query (the one that returns sourceUrls) fails.

Environment

  • ani-cli version: 4.15.1 (also reproduced on 4.14.5)
  • Branch: fix
  • OS: Windows 11 (tested via WSL2 Ubuntu, Git Bash/MINGW64, and native)
  • All dependencies confirmed installed (curl, sed/grep via WSL or equivalent, openssl, fzf, mpv)

Steps to reproduce

  1. ani-cli naruto
  2. Select any show
  3. Select any episode
  4. Error appears

Notes

AA_CRYPTO_MISSING suggests allanime.day added a required encrypted/signed parameter to the episode() query specifically (search/list queries are unaffected), likely as an anti-scraping measure. Full bash -x trace available on request.

garvitkushwaha-iitr avatar Jul 21 '26 08:07 garvitkushwaha-iitr

I used: bash -x "$(which ani-cli)"

garvitkushwaha-iitr avatar Jul 21 '26 08:07 garvitkushwaha-iitr

Thanks for the thorough issue report. bash -x output not needed, they probably just added more encryption. We're getting good at this crypto stuff, so fingers crossed for a fix in the next 24 hours

port19x avatar Jul 21 '26 09:07 port19x

Change line 462 with this one allanime_query_hash="f4662f4b7510b26795dd53ef824a0bf1740fbbc5d1273fab18222ac831bca8d0"

hjfghycvdt avatar Jul 21 '26 10:07 hjfghycvdt

got fixed this afternoon in this commit, thanks @hjfghycvdt for the new parameter

port19x avatar Jul 21 '26 17:07 port19x