DeprecationWarning for OutgoingMessage.prototype._headers
See original GitHub issueDescribe the bug
According to Node.js Deprecated APIs, OutgoingMessage.prototype._headers
in v12
has been deprecated and on the other hand i see some deprecation logs while using Axios.
(node:89822) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
To Reproduce Calling an endpoint in Node.js v12
Expected behavior A patch for this deprecation.
Environment:
- Axios Version:
0.19.0
- OS: OSX 10.15
Related Links:
- https://stackoverflow.com/questions/56697360/how-to-fix-node12388-dep0066-deprecationwarning-outgoingmessage-prototype
- https://nodejs.org/api/deprecations.html#deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames
- https://github.com/http-party/http-server/issues/537
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:8
Top Results From Across the Web
How to fix (node:12388) [DEP0066] DeprecationWarning ...
When I started project I got warning from node ([DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated) every time.
Read more >Nodejs 12: ERROR (node:8) [DEP0066] DeprecationWarning ...
The above link says that OutgoingMessage.prototype.getHeaders() , OutgoingMessage.prototype.setHeader() should be used instead.
Read more >OutgoingMessage.prototype._headers is deprecated ...
Hi there, thank you guys for making balenaOS! I try to get a simple node.js with the gcloudsdk working but the image can't...
Read more >OutgoingMessage.prototype._headers is depreciated, in stock ...
Tell us what's happening: I believe I've set up the helmet.js properly with the following code in my server. app.use(helmet()) ...
Read more >Changelog - hapi.dev
Node V12 deprecation warning [DEP0066] OutgoingMessage.prototype. ... Add default port to host header when no port specified. Fixes #62.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s still happening 😕
To Reproduce
Calling an endpoint in Node.js v14
Environment:
Axios Version: 0.21.0 OS: OSX 10.15
Any update on this issues guys? Keen to suppress these errors. Happy to help where needed.