Skip to content

rejectUnauthorized not work for me  #531

Description

@xiaomengheiheihei

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions