curl -sS -D - -o body.txt \
-A "nya/2.8.5/Android/722837263881" \
-H "x-hwid: 0123456789abcdef0123456789abcdef" \
-H "x-device-os: Android" -H "x-ver-os: 14" -H "x-device-model: Pixel 8" \
https://sub.example.com/sub/abc123| Check | Good | Bad |
|---|---|---|
| Status | 200 | 404 no user or HWID required; 403/451 block rule |
| Body | Links, Base64, JSON or YAML | HTML page — the panel treated nya as a browser |
profile-title | Non-ASCII in base64: | Raw non-ASCII — garbled |
subscription-userinfo | Integers, expire in seconds | Milliseconds in expire |
App errors
| Message | Cause | Fix |
|---|---|---|
| Subscription not found | 404 | Check the link, user status and response rules |
| Subscription server is not responding (502) | Panel or proxy down | Check panel and nginx |
| Subscription format is not supported | No links/JSON/YAML in body | Often HTML: add a rule for ^nya/ |
| Device limit reached | x-hwid-max-devices-reached | Remove an old device or raise the limit |
| Could not find the subscription server | DNS failure | nya retries via secure DNS; check the domain |