Clash Subscription Update Failed or Parse Error: Troubleshooting Checklist
Troubleshoot expired links, blocked requests, invalid responses, YAML indentation, and User-Agent restrictions. Learn how to check logs for subscription update and parsing errors.
Run one manual update and identify where it fails
Keep your working configuration for now; don’t delete the subscription. Remote configuration updates typically involve three stages: download, parsing, and application. If your existing nodes still connect, that only confirms the old configuration works—it doesn’t mean the latest update succeeded.
- In Clash Verge Rev 2.x for desktop, open “Subscriptions” and choose “Update” from the menu on the relevant subscription card. Icons and menu labels may vary between minor versions. Note the time and the error message, and avoid clicking refresh repeatedly.
- If the update fails, first check the subscription notification or error details. Then open “Logs” and look for the first error recorded around the same time. Subscription downloads are handled by the client, so if the core logs don’t show anything, rely on the client’s update error.
- If the update reports success but an error appears only after you switch to that configuration, check the configuration loading errors in “Logs.” Note the field and line number involved, and whether the configuration uses overrides or merges.
| Example error | Check first |
|---|---|
HTTP 401 or HTTP 403 | The request was rejected. Check the link’s authorization, and make sure the response isn’t a network sign-in page or gateway page. |
lookup ... no such host or context deadline exceeded | Check the network, DNS, and proxy route used for the subscription request first. Don’t edit the YAML. |
yaml: line 12: did not find expected key | First confirm the download is YAML, then check the indentation and punctuation on line 12 and the lines just above it. The line number is only an example. |
| A proxy group references a node that doesn’t exist | Check the effective configuration before applying it, including node names, proxy group references, and the results of any overrides. |
Check the subscription link, expiration, and request route
Rule out an old link or a copy-and-paste mistake
Return to your provider’s account page and check the subscription’s expiration, status, and whether its link has been reset. Make sure the download option is for a Clash or Mihomo configuration, not the account login page. Use the page’s copy button to get the full link, then edit the address from the subscription card menu in your client. This helps avoid missing parameters after ?, copying & as &, or including quotes or line breaks.
- For
401, check whether your credentials have expired. A403only means the request was denied; it doesn’t prove the subscription has expired. If your account is in good standing, check the error body for details about unsupported apps or access restrictions. - For
404, check the full path and see whether your provider has moved the endpoint. For429, stop refreshing repeatedly. If the response includesRetry-After, wait for the specified time before trying again. - If the request is redirected, check the final response. A redirect to a login page may return
200, but a login page isn’t an importable configuration.
A link that works in your browser may still fail in the client
Your browser may have an account login cookie, or use different proxy settings from the client. So a page opening in the browser is only a point of comparison. If your client offers an option to download subscriptions through a proxy, try both a direct connection and a known-working proxy on the same network, changing only that option each time. This can reveal a common dependency loop: downloading the new configuration requires a proxy, but the current proxy relies on the old configuration that’s no longer working.
If the client asks you to enter a local proxy address manually, use the port from your current configuration. For example, enter http://127.0.0.1:7890 in a field that supports HTTP proxies only if the core is running and mixed-port: 7890 is actually listening on your machine. If the logs show a certificate error, check your system clock and whether the network requires a browser sign-in. Don’t disable TLS verification to hide the error. If you’re unsure, test the same link once on another trusted network.
Check the response: HTTP 200 doesn’t mean the configuration is usable
Check the beginning of the downloaded content locally and compare it with the export format specified by your provider. Don’t rely only on the file extension or Content-Type: the same subscription URL may return different content depending on the request, and opening it directly may produce a different response from the client.
| Response | What to do |
|---|---|
| HTML login or error page | If the response starts with <!doctype html> or <html>, check authentication, redirects, or network sign-in. Don’t just change the file extension and try to import it. |
| Base64 list or share URIs | A single long line of encoded text or multiple share links such as ss:// aren’t Clash YAML. Unless your client explicitly supports this import format, use the YAML export provided by your service. |
YAML containing only proxies: | This may be a proxy provider file or a minimal configuration. If your provider identifies it as a provider file, follow its instructions to reference it from the main configuration using proxy-providers. Don’t treat it as a full configuration with its own proxy groups and rules. |
| YAML with proxy groups and rules | Check for the expected proxy-groups and rules, as well as node sources and fields supported by your core. |
If the main configuration loads but the expected nodes don’t appear on the “Proxies” page, check whether the relevant proxy groups use use to reference the provider. The main subscription and provider URL can be updated separately: a successful main configuration update doesn’t mean its proxy-providers have downloaded successfully. If the logs mention a provider name or URL, troubleshoot that resource instead of repeatedly replacing the main subscription.
Fix YAML indentation, then check core compatibility
Check the syntax only after confirming that the response is actually YAML. Save a local copy first, then use the reported line number to find the nearest preceding key at the same level. The reported line is often where the parser first gets stuck; the actual mistake may be a quote, colon, or list indentation on the line above. Save the file as UTF-8, and use spaces—not tabs—for indentation.
This example shows only the hierarchy of proxy group entries, group lists, and rule lists. Use it to check indentation, not to replace your existing subscription. DIRECT is a built-in direct-connection policy.
proxy-groups:
- name: Local direct connection
type: select
proxies:
- DIRECT
rules:
- MATCH,Local direct connection
- Align the top-level
proxy-groups:andrules:keys to the left. In the example, proxy group entries are indented by two spaces. Within a group,typeandproxiesalign withname, and nested list entries are indented further. - Use a standard colon as the field separator. If a name contains
:or#that could be interpreted as a comment, wrap the entire name value in straight quotes and use the exact same name wherever it’s referenced. - If the YAML syntax is valid, check the configuration semantics. Node names referenced by proxy groups must match their definitions. If the subscription includes node types unsupported by original Clash, such as
type: hysteria2, confirm that you’re running a Mihomo core that supports them—not just a client with a compatible-sounding name.
If the original subscription is readable and errors appear only when overrides are enabled, compare it with a copy that has overrides disabled, keeping the original configuration intact. The line number in the logs may refer to the merged configuration, not the remote YAML. If the remote file itself is faulty, ask your provider to fix it rather than making the same manual edits after every update.
Finally, check the User-Agent and provider export requirements
Check the User-Agent only if the browser returns a list of nodes but the client gets an error page or a different configuration. First compare the results on the same network with the same subscription URL, ruling out differences in browser cookies, proxy routes, and caching. A single 403 isn’t enough to confirm that the server routes requests by User-Agent.
- Check whether your provider offers a separate “Clash” or “Mihomo” export option. If it provides a dedicated link, use that to avoid getting different content from the same URL based on the client type.
- If your provider explicitly requires a particular
User-Agentand your client’s subscription editor has a matching field, enter the value as documented and run one manual update. This field applies to the download request; it isn’t a configuration key to add to the YAML. - If the client doesn’t offer this setting, or your provider hasn’t documented which clients are supported, note the client and core versions, final HTTP status, and response type, then ask your provider which endpoint to use. Don’t keep changing the User-Agent at random to guess the format.
After updating, verify that the configuration is actually active
First, check “Subscriptions” to confirm the entry shows the latest update time, then make sure it’s the active entry rather than an old copy. Open “Proxies” and check an expected proxy group and node. If the node comes from a provider, make sure the provider has loaded too. Finally, start a new connection to a site you normally use and check the matched rule and proxy group in the client’s connection log. Existing connections may still use the policy from before the update, so they can’t confirm that new rules are working.
If the update, parsing, and configuration application all succeed, but one app still times out, check that app’s DNS, rule matching, and proxy routing instead of changing the subscription format. When reporting the issue, include your OS, client and core versions, failure time, operation stage, and the first error with sensitive details removed. If the error includes a YAML line number, share only a few nearby lines with credentials removed.