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
fix(live_view_hook): handle Bandit.TransportError and URI struct in connect_info
Wrap `get_connect_info/2` calls in `try/rescue` to gracefully handle
`Bandit.TransportError` when the WebSocket transport is already closed
during mount (fixes#1025).
Convert `socket.host_uri` to a string with `URI.to_string/1` before storing
it in request context, preventing JSON encoding failures when `:uri` is
not included in `connect_info` (fixes#1040).
Also sanitize non-JSON-encodable values in `:request` during event rendering
as defense-in-depth.
Co-Authored-By: OpenCode <noreply@opencode.ai>
0 commit comments