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

rejectUnauthorized not work for me #531

Open
xiaomengheiheihei opened this issue Sep 4, 2024 · 1 comment
Open

rejectUnauthorized not work for me #531

xiaomengheiheihei opened this issue Sep 4, 2024 · 1 comment

Comments

@xiaomengheiheihei
Copy link

The usage version is as follows:

"name": "urllib",
"version": "3.18.1",

code

import { request, ProxyAgent } from 'urllib';

let res = await request(url, {
    timeout,
    method,
    headers: headers,
    data: query,
    gzip: true,
    rejectUnauthorized: false,
    dispatcher: proxyAgent ? proxyAgent : null
  });

Still reporting errors :UNABLE_TO_VERIFY_LEAF_SIGNATURE

@fengmk2
Copy link
Member

fengmk2 commented Sep 16, 2024

能否提供一个可复现的代码?

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