Skip to content

lychee can panic with invalid input URL #2189

@thomas-zahner

Description

@thomas-zahner

Since 8bbeeb5 when passing multiple URLs to lychee, where one URL is "invalid" (i.e. returns a unsuccessful status code) lychee panics when it tries to use the queue once more. Is there maybe an easy way to exit lychee early instead of trying to reuse the queue? Maybe this behaviour is okay, the panic just doesn't look very nice.

Example

cargo run 'https://example.com/' 'https://example.com/a'

thread 'tokio-rt-worker' (67049) panicked at lychee-bin/src/commands/check.rs:236:18:
cannot send response to queue: SendError { .. }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Cannot read input content from URL: status code 404 Not Found. To check links in error pages, download and check locally instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    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