-
Notifications
You must be signed in to change notification settings - Fork 124
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
rejectUnauthorized not work for me #531
Labels
bug
Something isn't working
Comments
能否提供一个可复现的代码? |
需要单独创建一个 httpClient 实例,不能使用全局的 const httpclient = new HttpClient({
connect: {
rejectUnauthorized: true,
},
}); |
我增加一个方式兼容一下 |
fengmk2
added a commit
that referenced
this issue
Dec 7, 2024
fengmk2
added a commit
that referenced
this issue
Dec 7, 2024
) closes #531 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced HTTP client configuration with options for handling HTTP/2 and unauthorized requests. - Introduced new tests for validating behavior with `rejectUnauthorized` set to false. - **Bug Fixes** - Improved error handling and address validation in HTTP client tests. - **Documentation** - Updated comments for clarity and consistency in the `HttpClient` class. - **Chores** - Updated dependency management for improved security and functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
4.x的版本确实可以了,3.x的版本怎么处理呀?抱歉我没太明白您说的单独创建一个 httpClient 实例是怎么处理的,我现在项目中使用的是3.18.1这个版本,由于某些原因不能升级到4.x的版本,所以请教下这个版本下如果需要配置rejectUnauthorized怎么实现? |
需要将 #561 pick 到 3.x,我晚点处理一下 |
fengmk2
added a commit
that referenced
this issue
Feb 13, 2025
@xiaomengheiheihei try again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The usage version is as follows:
"name": "urllib",
"version": "3.18.1",
code
Still reporting errors :UNABLE_TO_VERIFY_LEAF_SIGNATURE
The text was updated successfully, but these errors were encountered: