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

(node:6332) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #366

Open
masx200 opened this issue Apr 20, 2020 · 9 comments

Comments

@masx200
Copy link

masx200 commented Apr 20, 2020

node -v
v13.13.0

(node:6332) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

if (this._headers) {

  if (this._headers) {
@FlorentinTh
Copy link

FlorentinTh commented Apr 24, 2020

I just made a pull request to fix it : #367

[EDIT] but obviously the CI fails on node 6 since the feature was introduced in version 7. If maintainers need to continue supporting node 6 maybe we will not have a release with the merge coming soon.

[EDIT-2] I was wrong in my first EDIT I found a way to support older versions of node.

@masx200
Copy link
Author

masx200 commented Apr 24, 2020

Support it. Great. Well done.

@MatsG23
Copy link

MatsG23 commented May 1, 2020

I am also getting
(node:12775) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use node --trace-deprecation ... to show where the warning was created)

I'm using Node.js 14.1.0 and spdy 4.0.1

@FlorentinTh
Copy link

FlorentinTh commented May 1, 2020

@MatsG23 yeah theoretically my pull request will fix all possible warnings however I cannot figure out how to make tests to work with node 12.x and 14.x. Moreover, the project seems to be left off since these newer versions of node include http2 and it is plan in the express 5 roadmap to support http2 which is currently not supported in v4.x

@masx200
Copy link
Author

masx200 commented Jun 8, 2020

@krishnaTORQUE
Copy link

I am also getting the same warning

(node:57156) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

@therealgilles
Copy link

Any chance to get this fixed soon?

@euberdeveloper
Copy link

euberdeveloper commented Mar 8, 2021

This deprecation warning was introduced I think with NodeJS 12 and I see that the npm module is last updated one year ago. Is this module dead?

@sido420
Copy link

sido420 commented Mar 15, 2021

Any updates on this? These warnings are long and annoying

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

No branches or pull requests

7 participants