Node HandbookNODE HANDBOOK
Subscription fetch

Clash Verge Rev: context deadline exceeded

This message comes from the client's own timer, not from the network. Something was given a deadline and did not finish in time — which means the failure could be a slow host, a slow path, or a request routed through the very proxy that is not working yet.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

A deadline is an opinion about time

Unlike a refused connection or a reset, a deadline carries no information from the remote side. Nothing rejected the request; the client stopped waiting. That distinction matters because it changes what can be concluded: everything you know is that a duration elapsed.

Compare the three timeout-family messages:

MessageLayerWhat it proves
i/o timeoutSocket read or writeA packet was sent and no reply arrived in the socket's window
context deadline exceededRequest as a wholeThe overall budget expired, regardless of which step consumed it
context canceledRequest as a wholeSomething actively abandoned the request, often the user or a parent deadline

The middle row is the one in this article, and its defining property is that it does not name a step. DNS, connect, TLS, or the body transfer could each have consumed the budget.

The loop that is easy to miss

Subscription fetching is a request made by the proxy client. If the system proxy is enabled and the client itself honours it, that request can be routed through the proxy — which is exactly the thing the profile is needed to configure.

The shape is circular: to build a working proxy you must fetch the profile; to fetch the profile you must go through the proxy. When the proxy is not yet functional, the request has no path, and it fails on the deadline rather than on a refusal, because nothing is there to refuse.

Three signs identify this:

  • It fails only when the system proxy or TUN is on, and succeeds with both off.
  • It appears right after a fresh install, before any node has ever connected.
  • The core log shows no outbound attempt for the subscription host, because the request never reached the core.

The fix is to route subscription fetches directly, bypassing the proxy. Most clients offer this as an option; where they do not, turning the proxy off for the duration of an update is the equivalent.

The non-circular causes

The host is slow

Some panels respond in seconds under load. A one-second deadline fails; a ten-second deadline succeeds. Test the actual latency before assuming a fault:

curl -sS -o /dev/null -w 'dns=%{time_namelookup} conn=%{time_connect} tls=%{time_appconnect} total=%{time_total}\n' "$URL"

The breakdown identifies which step is slow. A high name lookup is a resolver problem; a high connect time is a path problem; a high total with low earlier numbers is a slow responder.

The resolver is slow rather than broken

A resolver that answers in four seconds is not failing, but it consumes most of a five-second budget. This is common on networks with an overloaded local resolver, and it presents as a deadline on the whole request rather than as a DNS error.

The path drops packets

Partial loss on the route to the host turns a fast transfer into a slow one, and the deadline fires before a reset would. Retries with different timings succeed sometimes, which is the signature of loss rather than of a hard block.

Raising the timeout is a test, not a fix

Increasing the client's timeout is the first thing everyone tries, and it is genuinely useful as a diagnostic: if a longer deadline succeeds, the cause is slowness rather than reachability, and the slow step can then be identified with the timing breakdown above.

As a permanent change it hides the problem. A profile fetch that needs thirty seconds will need it again, and the same deadline will fire in a context where you cannot change it. Diagnose with the raised value, then fix the slow step.

What to record

  • Whether it succeeds with the system proxy and TUN disabled. That single bit separates the circular case from everything else.
  • The four timing numbers from the request. They localise the slow step.
  • The configured timeout in the client, and whether raising it changes the outcome.
  • Whether the same URL fetched by curl from the same machine completes, and how long it takes.

With those four, the deadline message stops being a dead end and becomes a statement about which stage was slow.

Frequently asked

Is this the same as a timeout on a node?

No. A node timeout is reported per connection with the node's name attached. This message is about a request the client made itself, typically the subscription fetch, and it names no node.

Why does it only happen with the proxy enabled?

Because the fetch is being routed through the proxy it is trying to configure. That loop has no working path until the profile exists. Route subscription updates directly and the deadline disappears.

Should I just increase the timeout?

Use it as a diagnostic. If a larger value succeeds, the cause is slowness and the timing breakdown will show which step. Leaving it raised hides a host or path problem that will resurface.

Can a slow DNS resolver cause this?

Yes. A resolver answering in several seconds consumes most of a short budget, and the failure surfaces as a deadline on the whole request rather than as a DNS error, because the resolver eventually answered.

Does this mean the provider is unreliable?

Not on its own. It means one request exceeded a limit. Check the timing breakdown and compare with another host before drawing a conclusion about the provider.