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

Add minimum versions for urllib3 and requests #9

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

joverlee521
Copy link
Contributor

Description of proposed changes

It's not entirely clear why this works, but using urllib3>=2.0.0 avoids the 403 Client error.¹

Adding minimum version for requests the first version that officially supports urllib3 v2.²

¹ #7 (comment)
² https://github.com/psf/requests/releases/tag/v2.30.0

Related issue(s)

Resolves #7

Checklist

  • Checks pass

@joverlee521 joverlee521 requested a review from tsibley December 4, 2024 19:00
Copy link
Member

@tsibley tsibley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking down the practical fix! +1

I tracked down the why, which would be nice to link to or summarize in the commit message for posterity.

.gitignore Outdated Show resolved Hide resolved
Using urllib3>=2.0.0 to avoid the 403 Client error.¹

Adding minimum version for `requests` the first version that officially
supports urllib3 v2.²

See @tsibley's comment on _why_ upgrading `urllib3` resolved the 403
Client error.³

¹ <#7 (comment)>
² <https://github.com/psf/requests/releases/tag/v2.30.0>
³ <#7 (comment)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

403 Client Error: Forbidden for url: https://readthedocs.org/api/v3/projects/?limit=100
2 participants