AA_CRYPTO_MISSING returned by episode() API on 4.15.1 (fix branch)
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
ani-cli naruto- Select any show
- Select any episode
- 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.
I used: bash -x "$(which ani-cli)"
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
Change line 462 with this one allanime_query_hash="f4662f4b7510b26795dd53ef824a0bf1740fbbc5d1273fab18222ac831bca8d0"
got fixed this afternoon in this commit, thanks @hjfghycvdt for the new parameter