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

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #381

Open
x4080 opened this issue Feb 9, 2022 · 0 comments
Open

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #381

x4080 opened this issue Feb 9, 2022 · 0 comments

Comments

@x4080
Copy link

x4080 commented Feb 9, 2022

Hi, I got this message when trying to use it ex :

var Xray = require('x-ray')
var x = Xray()
x('http://google.com', 'title')
    .then(function (res) {
        console.log(res)
    })
    .catch(function (err) {
        console.log(err) // handle error in promise
    })

output is

(node:9660) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Google

Any tips how to fix it ?

Thanks

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

1 participant