Skip to content

feat: longer texts or more helpful output #119

Open
@Rolv-Apneseth

Description

@Rolv-Apneseth

Part

Executable (CLI)

Description

Hi, cool tool, thanks for making it.

I tried to use ltrs check data.json, where that JSON file is quite large, and this is the returned error:

thread 'tokio-runtime-worker' panicked at /home/rolv/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.11.18/src/into_url.rs:80:14:
a parsed Url should always be a valid Uri: InvalidUri(TooLong)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /usr/src/debug/languagetool-rust/languagetool-rust-2.1.4/src/lib/server.rs:433:47:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(17), ...)

Now, knowing nothing about this tool's internals or the languagetool API it uses, I assume that the text is being passed as a query parameter and hence the too long error.

Is it possible to either pass the text in the body of the request (if it's a GET request then I suppose not) or split up the request into multiple requests?

I realise those might be too annoying to implement, so some helpful error output would also be fine.

Screenshots

No response

Additional information

version: languagetool-rust 2.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the CLIenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions