this post was submitted on 12 Jul 2023
8 points (90.0% liked)
Lemmy
12572 readers
1 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This one got me too.
lemmy.ml specifically is running requests through a user agent checker - and if it's empty, which reqwest is by default, you will get a 403.
You can see an example here of using ClientBuilder to set a user agent string: https://github.com/CMahaff/lasim/blob/main/src/lemmy/api.rs
So set any string (should be your project name) and then it should work.
Oh great thank you