VPN subscription won't update: errors 403, 404, 502, certificate, timeout

When a subscription won't update, the app only passes on what the subscription's address answered, so the cause is the same in any app. 403 is a refusal (a device limit, an expired plan, an app the service doesn't let in), 404 an old or wrong link, 502 and 504 a broken server on the service's side, a certificate error a wrong clock or something in the middle, a timeout a blocked address. The servers you already have usually keep working: connect to one of them and update again. One command below shows what the address really answers.

Updated

On this page

Ask the address yourself

Put your subscription link in place of the example. The answer is the key to your servers, so don't paste it into chats: the first lines, the status and the headers, are enough.

Windows: cmd (in PowerShell type curl.exe)
curl -sS -L -o NUL -D - -A "v2rayN/7.0" "https://sub.example.com/sub/TOKEN"

Prints the status and headers only. HTTP/2 200 means the address answers. Any other number is the one the app got.

macOS or Linux: Terminal
curl -sS -L -o /dev/null -D - -A "v2rayN/7.0" "https://sub.example.com/sub/TOKEN"

The same. -A names the app: without it curl introduces itself as curl, and some services refuse it.

Any system: the first characters of the answer
curl -sS -L -A "v2rayN/7.0" "https://sub.example.com/sub/TOKEN" | head -c 60

<!DOCTYPE html> is a web page, not a subscription. Letters and digits with no spaces are a base64 list, proxies: or { Clash or JSON. Nothing at all is an empty list. In cmd there is no head: drop everything after the link.

  • curl: (6) — the name doesn't resolve: a typo, a dead domain, or DNS that blocks it.
  • curl: (7) or (28) — the address doesn't answer or is too slow: the server is down, or your network blocks it.
  • curl: (35) — the secure connection broke off: often a block by name on the way.
  • curl: (60) — the certificate isn't trusted: the clock, an antivirus that checks HTTPS, or a certificate that ran out.

What you see, why, and what to do

  • 403 Forbidden

    CauseThe service refuses: the plan is over, the device limit is reached, this app isn't allowed, or protection took you for a bot

    What to doCheck the plan and devices in the account or bot; turn the VPN off and try; use an app the service names

  • 404 Not Found

    CauseThe link was reset or cut off when copied, or the subscription was removed

    What to doCopy a fresh link from the account or bot

  • 401, 410, 429

    CauseThe link is revoked, gone, or asked too often

    What to doA fresh link; for 429 wait and set a longer interval

  • 500, 502, 503, 504

    CauseThe panel on the service's side is down or restarting

    What to doWait, then write to the service: nothing on your side fixes it

  • A certificate error, x509: certificate signed by unknown authority

    CauseAn antivirus or a work network opens HTTPS, the certificate is self-signed or lacks its chain

    What to doTry mobile data; ask the service to fix the certificate

  • x509: certificate has expired or is not yet valid

    CauseThe device's clock, or a certificate nobody renewed

    What to doTurn on automatic time; if other sites open, it's the service

  • Timeout, context deadline exceeded, no such host

    CauseThe subscription's address is blocked or down; the servers themselves may work

    What to doUpdate while connected to one of the servers, or through mobile data; ask for another address

  • 200, but zero servers

    CauseThe plan or traffic is over, or the list has only protocols the app can't read

    What to doCheck the plan; update the app

  • 200, but a web page

    CauseIt's the service's page for people, not the subscription

    What to doFind “Copy link” on it and paste that

  • It updates, but the geo files don't download

    CauseThe app fetches them from another place, usually GitHub

    What to doSee the section on geo files below

How the apps put it

The same refusal reads differently in each program:

  • Clash Verge Rev

    What it saysfailed to fetch remote profile with status 403 Forbidden

    What it meansThe status is the service's answer

  • Clash Verge Rev

    What it saysthe remote profile data is invalid yaml

    What it meansA page or a base64 list came instead of YAML

  • Clash Verge Rev

    What it saysprofile does not contain proxies or proxy-providers

    What it meansThe YAML has no servers: often the plan is over

  • v2rayN

    What it saysFailed to import subscription content; Invalid subscription content

    What it meansThe answer isn't a list of links

  • v2rayNG

    What it saysImport subscription failed

    What it meansNothing that looks like servers came back

  • Hiddify

    What it saysSubscription not found; The VPN provider refused this link

    What it means404 and a refusal

  • sing-box

    What it saysunexpected status: 404 Not Found

    What it meansNot the subscription: a rule set it downloads

Why one app updates and another doesn't

Every app introduces itself with a User-Agent, such as v2rayN/7.0 or clash-verge. Many panels answer by that name: YAML for Clash, JSON for sing-box, a base64 list for the rest. Some services let in only the apps they know, and some send the device's ID and count devices by it. So the same link can work in one app and give 403 or an empty list in another.

To see it, run the command above twice with different names: -A "clash-verge", then -A "v2rayN/7.0". Different statuses mean the service picks by app. Most clients have a User-Agent field in the subscription's settings. An address like happ://crypt… is encrypted for one app: ask the service for the plain https:// link.

The other difference is the road. An app can download the subscription directly or through the tunnel that is up. If the service's site is blocked in your network, turn the VPN on and update; if its protection doesn't like the VPN server's address, turn the VPN off and update.

Geo files and a core that doesn't start

Two more failures only look like a broken subscription: the app has the list, then stops at the files with sites and countries or at starting the core.

  • Geo files don't download. mihomo writes can't download GeoIP.dat or can't download MMDB. Xray writes failed to open geosite.dat, or list not found in geosite.dat when the file is older than the rules. They come from GitHub: download through mobile data or another VPN, or set another source in the app's settings.
  • A rule set doesn't download. sing-box stops with initial rule-set: and the set's name. Until it downloads once, the core won't start.
  • The core doesn't start. v2rayN says Failed to run Core, please check the prompt information, v2rayNG Failed to start service. Read the line above: bind: address already in use, or on Windows Only one usage of each socket address, means a second client holds the port. Close it.
  • The config needs a newer core. Update the app.

What to tell the service

With these lines the service finds the cause at once:

  • The status: 403, 404, 502, or the curl number in brackets.
  • The app with its version and the system.
  • Whether it updates on another network and with the VPN on.
  • The time of the attempt with the time zone. Not the link itself: whoever sees it can use your access.
  • Ask for a second address of the subscription on another domain, and for the plain https:// link rather than a button for one app.

When nothing helps

  • Remove and add the subscription again. It helps when the app remembers an old address. Save the servers you use first: some apps delete them with it.
  • Try a browser. If the link opens in the browser on the same device and not in the app, the cause is the app or its User-Agent, not the network.
  • Ask whether the service still works. A domain that doesn't resolve from any network and a silent bot mean that it doesn't.

Sources

How we write and check

In Veli

Veli says in words what the address answered

In Veli a subscription is a group in Profiles. The arrows next to the search refresh the servers' tests and all subscriptions at once, “Refresh now” refreshes one. A failed update doesn't take the servers away: the old ones stay and connect, and the group header says why: “The provider found no subscription at this link (404)…”, “The provider's device limit for this subscription is used up…”, “The link opened a web page, not a subscription…”, “The subscription is empty”, and for the rest “The subscription server answered with an error” with its number.

On a computer Veli introduces itself to the service as v2rayN, so most panels answer with a list of links. It reads links, base64, Clash / mihomo and Xray JSON, from https:// addresses only. The site lists for rules come separately from the subscription, so a list that didn't download never stops it. An encrypted happ://crypt link is for Happ only, and Veli says so and asks for the plain https:// one.

FAQ

Why does my VPN subscription give a 403 error?

The service refused the request: the plan or the device limit is over, the app isn't on its list, or its protection doesn't like your address. Check the account, then try with the VPN off and in another app.

What does 502 mean when updating a subscription?

The panel behind the address doesn't answer. It is on the service's side: wait and write to them. Servers you already have can keep working.

Why is the subscription empty after an update?

Most often the term or the traffic has run out. Less often the list holds only protocols your app can't read, and a newer version reads them.

Can I update the subscription with the VPN on?

Yes, and it helps when the subscription's address is blocked in your network. If the service refuses the VPN server's address, do the opposite and update with the VPN off.

What is a User-Agent in a subscription?

The name the app gives itself when it downloads the list. The service may choose the format by it or let in only certain apps.

Why does the app hang on downloading geo files?

They come from another server, usually GitHub, and that one is slow or blocked. Download once through another network or VPN, or set another source in the settings.

The reason instead of a red cross

Veli is a free client for Windows, macOS, Linux and Android. It reads most subscription formats, keeps your servers when an update fails and says in words why.