Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
This repository was archived by the owner on May 5, 2023. It is now read-only.

https.request signature has changed since Node v10.9.0 #24

@vnc5

Description

@vnc5

The signature since v10.9.0 is:

http.request(options[, callback])
http.request(url[, options][, callback])

https://nodejs.org/en/blog/release/v10.9.0/

Calling https.request('https://host', { method: 'HEAD' }) results in:

TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type Function. Received type object
at \agent-base\patch-core.js:23:20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions