zellij-org/zellij · error · anyhow::Error
Invalid WebSharing value: {}
Error message
Invalid WebSharing value: {} What it means
Error "Invalid WebSharing value: {}" thrown in zellij-org/zellij.
Source
Thrown at zellij-utils/src/ipc/protobuf_conversion.rs:1091
auto_layout: options.auto_layout,
session_serialization: options.session_serialization,
serialize_pane_viewport: options.serialize_pane_viewport,
scrollback_lines_to_serialize: options
.scrollback_lines_to_serialize
.map(|s| s as usize),
styled_underlines: options.styled_underlines,
serialization_interval: options.serialization_interval,
disable_session_metadata: options.disable_session_metadata,
support_kitty_keyboard_protocol: options.support_kitty_keyboard_protocol,
support_kitty_graphics_protocol: options.support_kitty_graphics_protocol,
web_server: options.web_server,
web_sharing: options
.web_sharing
.map(|w| match ProtoWebSharing::try_from(w).ok() {
Some(ProtoWebSharing::On) => Ok(crate::data::WebSharing::On),
Some(ProtoWebSharing::Off) => Ok(crate::data::WebSharing::Off),
Some(ProtoWebSharing::Disabled) => Ok(crate::data::WebSharing::Disabled),
_ => Err(anyhow!("Invalid WebSharing value: {}", w)),
})
.transpose()?,
stacked_resize: options.stacked_resize,
stacked_pane_list: options.stacked_pane_list,
dangerously_enable_paste_buffer_read: options.dangerously_enable_paste_buffer_read,
show_startup_tips: options.show_startup_tips,
show_release_notes: options.show_release_notes,
advanced_mouse_actions: options.advanced_mouse_actions,
mouse_scroll_resize: options.mouse_scroll_resize,
scroll_mode_sync: options.scroll_mode_sync,
mouse_hover_effects: options.mouse_hover_effects,
mouse_hover_tips: options.mouse_hover_tips,
web_server_ip: options
.web_server_ip
.map(|ip| ip.parse())
.transpose()
.map_err(|e| anyhow!("Invalid IP address: {}", e))?,
web_server_port: options.web_server_port.map(|p| p as u16),View on GitHub (pinned to e839bfffa5)
Solutions
- Validate the value against the allowed enum range before constructing the message.
- Ensure client and server use matching protobuf definitions; regenerate bindings if versions differ.
When it happens
Trigger: Occurs when a protobuf enum value received over IPC has no matching variant; conversion rejects the unknown value.
Common situations: Typical of version skew between client and server, or a malformed/corrupted IPC message.
AI-assisted analysis of zellij-org/zellij@e839bfffa5 (2026-08-19).
Data as JSON: /api/errors/580ea5893d25c7e1.
Report an issue: GitHub.