DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #23

Open
opened 2025-10-14 18:01:13 -06:00 by navan · 0 comments
Owner

Originally created by @x4080 on 2/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

*Originally created by @x4080 on 2/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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/x-ray#23
No description provided.