Skip to content
Discussion options

You must be logged in to vote

Ah, that's a little bit frustrating. 😬

It's unclear why the server is differentiating httpx and returning a 403 response in this case. Either the server or the gateway has presumably been configured to disallow httpx clients here.

Perhaps they've been spammed in the past by crawlers using httpx, and have a block in place as a result? I did try setting the request headers inc. User-Agent here, though there's evidently some more complex client fingerprinting in place.

Incidentally, there might be some useful default behaviours that we could build into httpx in order to help ensure that it's generally used as a well behaved client. Eg. respecting Retry-After for default rate limiting, perhap…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by holtgrewe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants