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.

[DEP0131] DeprecationWarning: The legacy HTTP parser is deprecated in Node `12.22.0`

See original GitHub issue

Bug Description

When running undici@3.3.3 with Node 12.22.0, we get this warning:

(node:3380211) [DEP0131] DeprecationWarning: The legacy HTTP parser is deprecated.
    at internalBinding (internal/bootstrap/loaders.js:136:34)
    at process.binding (internal/bootstrap/loaders.js:113:14)
    at Object.<anonymous> (/root/code/prisma/src/node_modules/.pnpm/undici@3.3.3/node_modules/undici/lib/node/http-parser.js:4:32)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/root/code/prisma/src/node_modules/.pnpm/undici@3.3.3/node_modules/undici/lib/core/client.js:5:20)

Is there anything we can do to disable it? Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
ronagcommented, Apr 8, 2021

Please try 3.3.4

1reaction
timsuchanekcommented, Apr 9, 2021

That fixes it! Thanks a lot for taking care of this so quickly. We’ll do our next stable release next week Tuesday, so then we can directly roll out this fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[2.1.1] (node:11737) [DEP0131] DeprecationWarning ... - GitHub
The legacy HTTP parser, selected by the --http-parser=legacy command line option, is deprecated with the pending End-of-Life of Node.js 10.x ( ...
Read more >
The legacy HTTP parser is deprecated - help - Meteor forums
I've started getting this error on a fresh install of Meteor + vue (node:39372) [DEP0131] DeprecationWarning: The legacy HTTP parser is ...
Read more >
Node v12.22.0 (LTS)
The legacy HTTP parser, selected by the --http-parser=legacy command line option, is deprecated with the pending End-of-Life of Node.js 10.x ...
Read more >
deprecationwarning: the legacy http parser is deprecated.
The legacy HTTP parser, selected by the --http-parser=legacy command line option, is deprecated with the pending End-of-Life of Node.js 10.x (where it is ......
Read more >
How to fix: (node:12364) [DEP0111] DeprecationWarning ...
binding('http_parser') is deprecated - Stack Overflow ...
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