Skip to content

unwrap() in transport.rs could panic on bad input #7

@kiyeonjeon21

Description

@kiyeonjeon21

crates/snact-cdp/src/transport.rs has URL parsing that silently falls back instead of returning an error:

  • Line ~43: WebSocket URL parsing uses chained unwrap_or() — if the URL is completely malformed, downstream code gets a bad host:port string and panics or hangs instead of returning a clear error.

Should return a CdpTransportError with a descriptive message instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions