Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidUriChar #4

Open
86482t opened this issue Dec 5, 2022 · 1 comment
Open

InvalidUriChar #4

86482t opened this issue Dec 5, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@86482t
Copy link

86482t commented Dec 5, 2022

Using a valid tag such as id:<7862944 gives the following error Err( UriParse( InvalidUri( InvalidUriChar, ), ), )

Example:

let client = Client::public();

dbg!(
        posts()
            .tags(&vec![
                "kaguya-sama_wa_kokurasetai_~tensai-tachi_no_renai_zunousen~",
                "id:<7862944"
            ])
            .send(&client)
            .await
    );

The error is fixed if you manually encode the < in the tag as id:%3c7862944

@mibmo
Copy link
Owner

mibmo commented Jan 12, 2023

Thanks for submitting an issue!

This is actually a known issue — the only needed change is to URI encode it, I just haven't gotten around to it. You're welcome to submit a PR if you're up for it, but if not it'll probably be fixed sometime™ :)

@mibmo mibmo added bug Something isn't working good first issue Good for newcomers labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants