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

When making HTTPS requests, the following error was encountered: ` httpx ConnectError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] #3298

Closed
KianaK204 opened this issue Sep 10, 2024 · 0 comments

Comments

@KianaK204
Copy link

After running this code in Python3.12
import httpx
r = httpx.get("https://www.51job.com",verify=False)

Error message:

httpx.ConnectError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)

I found that requests also has the same issue, I discovered a solution. I would like to know how to solve this problem in httpx. Here is the solution I found for requests: Stack Overflow link.

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

No branches or pull requests

2 participants