question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DeprecationWarning for OutgoingMessage.prototype._headers

See original GitHub issue

Describe 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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

8reactions
lucgauercommented, Apr 23, 2021

It’s still happening 😕

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

To Reproduce

Calling an endpoint in Node.js v14

Environment:

Axios Version: 0.21.0 OS: OSX 10.15

3reactions
JonHXcommented, Jun 10, 2020

Any update on this issues guys? Keen to suppress these errors. Happy to help where needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found