RU

Checking a subscription

How to verify everything works and what app errors mean.

Terminal
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
CheckGoodBad
Status200404 no user or HWID required; 403/451 block rule
BodyLinks, Base64, JSON or YAMLHTML page — the panel treated nya as a browser
profile-titleNon-ASCII in base64:Raw non-ASCII — garbled
subscription-userinfoIntegers, expire in secondsMilliseconds in expire

App errors

MessageCauseFix
Subscription not found404Check the link, user status and response rules
Subscription server is not responding (502)Panel or proxy downCheck panel and nginx
Subscription format is not supportedNo links/JSON/YAML in bodyOften HTML: add a rule for ^nya/
Device limit reachedx-hwid-max-devices-reachedRemove an old device or raise the limit
Could not find the subscription serverDNS failurenya retries via secure DNS; check the domain