zeroclaw-labs/zeroclaw · error
Signal HTTP client should build
Error message
Signal HTTP client should build
What it means
Invariant panic in the Signal channel's http_client: the reqwest builder with fixed connect timeout and resolved proxy config failed to build. With static settings this can only fail on an invalid proxy URL, so it is treated as a programming/config invariant via expect.
Solutions
- Check the TLS/HTTP client dependencies and system certificates; this panic indicates a build-time client configuration failure.
- Update reqwest/rustls dependencies or system CA certificates and restart the channel.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/zeroclaw-channels/src/signal.rs:192 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/96c30ae1f50f9102.
Report an issue: GitHub.
Appendix: source
Thrown at crates/zeroclaw-channels/src/signal.rs:192
/// Set a per-channel proxy URL that overrides the global proxy config.
pub fn with_proxy_url(mut self, proxy_url: Option<String>) -> Self {
self.proxy_url = proxy_url;
self
}
pub fn with_approval_timeout_secs(mut self, secs: u64) -> Self {
self.approval_timeout_secs = secs;
self
}
fn http_client(&self) -> Client {
let builder = Client::builder().connect_timeout(Duration::from_secs(10));
let builder = zeroclaw_config::schema::apply_channel_proxy_to_builder(
builder,
"channel.signal",
self.proxy_url.as_deref(),
);
builder.build().expect("Signal HTTP client should build")
}
/// Effective sender: prefer `sourceNumber` (E.164), fall back to `source`.
fn sender(envelope: &Envelope) -> Option<String> {
envelope
.source_number
.as_deref()
.or(envelope.source.as_deref())
.map(String::from)
}
fn is_sender_allowed(&self, sender: &str) -> bool {
let peers = (self.peer_resolver)();
crate::allowlist::is_user_allowed(&peers, sender, crate::allowlist::Match::Sensitive)
}
fn is_e164(recipient: &str) -> bool {
let Some(number) = recipient.strip_prefix('+') else {View on GitHub (pinned to 88bb9c8533)