You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: admit-path chain reads have no timeout, so a hanging RPC skips the getAuthorization fallback #2271
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve pathkind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwise
The admit-path chain reads have no per-call timeout, so a hanging RPC provider makes admission hang without a log line. While the call hangs it never returns an error, so the stale-registration fallback added in #2270 (#2220) never runs.
ResolvingPoolView::signer_authorization calls self.contract.getAuthorization(pool_id, signer).call().await (crates/node/src/payment_settlement.rs ~L965) with no timeout. The admit getPool read in the same view has the same shape.
The alloy HTTP provider has no request timeout of its own. The chain watchers bound their calls with chain_events::timed (crates/node/src/chain_events/mod.rs ~L134, DEFAULT_RPC_CALL_TIMEOUT). The admit path does not use it.
Wrap the admit getAuthorization and getPool reads in timed(...), so a hang becomes a fault. The fault then takes the existing paths: the cached-registration fallback, or a PoolUnconfirmed refusal.
Add a test with a provider that never answers: admission ends within the timeout and falls back.
Related, smaller
payment_settlement.rs ~L1514 logs the anyhow::Error from plan_lane with sanitize_rpc_display, which prints only the outermost context and drops the cause. Use sanitize_err_chain instead.
sanitize_rpc_display prints only the top-level Display of an alloy error. For a transport fault that is reqwest's error sending request for url (…). Once the URL is stripped, the log says error sending request and loses the class (timeout, connection refused, DNS, TLS), which sits in the source() chain. Add a helper that walks source() and strips URLs, or log through anyhow::Error::new(err) and sanitize_err_chain. The redact.rs docs promise that the class survives, which is not true at these sites.
Seen on testnet: bcl's RPC provider timed out admit getAuthorization while bcl was serving pull-through fills
2026-10-03, bcl (instance="bcl"). bcl's RPC endpoint is on a free plan and returned error code 30: Request timeout on the free plan, please upgrade to paid plan for about 15 minutes:
In that window this client (SDXL run 10) logged a cluster of stalls: lon1 at 13:12:30, then bcl at 13:12:34, 13:12:35, 13:13:01, 13:13:14 and 13:13:15 (no verified progress for 10s, several with landed=49152), and bcl no terminal signal after the voucher write failed at 13:13:17.
In this case the provider returned an error, so the fallback ran. Each admit getAuthorization was still awaited inline in serve_stream until the provider gave up. Those calls were for node-to-node fills (lon1 and hil1 buying from bcl), so the client stalls line up in time but are not proven to come from these exact streams. The bcl client stalls in run 13 (13:52:29–13:53:06) have no bcl log lines at all.
It supports both proposals: a timed(...) bound on the admit reads, and #2156 (fallback RPC URLs) for a node whose single provider throttles.
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve pathkind:bugSomething does not behave as documentedrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
altanoruc commentedon Oct 3, 2026
Seen on testnet: bcl's RPC provider timed out admit
getAuthorizationwhile bcl was serving pull-through fills2026-10-03, bcl (
instance="bcl"). bcl's RPC endpoint is on a free plan and returnederror code 30: Request timeout on the free plan, please upgrade to paid planfor about 15 minutes:chain_events::multiplexed_pollerget_block_number timed out after 10sblacklist_watcherpayment_settlement(spanserve_stream, peer lon1, signer0x797e…)admit getAuthorization failed; using the last cached registration(code 30)payment_settlement(spanserve_stream, peer hil1, signer0xCd21…)payment_settlement(spanserve_stream, peer hil1)alloy_provider::blocksfailed to fetch block(code 30)In that window this client (SDXL run 10) logged a cluster of stalls: lon1 at 13:12:30, then bcl at 13:12:34, 13:12:35, 13:13:01, 13:13:14 and 13:13:15 (
no verified progress for 10s, several withlanded=49152), and bclno terminal signal after the voucher write failedat 13:13:17.In this case the provider returned an error, so the fallback ran. Each admit
getAuthorizationwas still awaited inline inserve_streamuntil the provider gave up. Those calls were for node-to-node fills (lon1 and hil1 buying from bcl), so the client stalls line up in time but are not proven to come from these exact streams. The bcl client stalls in run 13 (13:52:29–13:53:06) have no bcl log lines at all.It supports both proposals: a
timed(...)bound on the admit reads, and #2156 (fallback RPC URLs) for a node whose single provider throttles.🤖 Generated with Claude Code
fix(node): bound admit-path chain reads and keep the RPC failure clas…