Error: decorateRequest is REMOVED
See original GitHub issueAccording to https://www.npmjs.com/package/express-http-proxy
Upgrade to 1.0, transition guide and breaking changes
decorateRequest has been REMOVED, and will generate an error when called. See proxyReqOptDecorator and proxyReqBodyDecorator.
Error: decorateRequest is REMOVED; use proxyReqOptDecorator and proxyReqBodyDecorator instead. see README.md
at resolveOptions (/usr/src/app/node_modules/express-http-proxy/lib/resolveOptions.js:21:11)
at new Container (/usr/src/app/node_modules/express-http-proxy/lib/scopeContainer.js:27:14)
at handleProxy (/usr/src/app/node_modules/express-http-proxy/index.js:39:21)
at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
at /usr/src/app/node_modules/express/lib/router/index.js:280:7
at param (/usr/src/app/node_modules/express/lib/router/index.js:349:14)
at param (/usr/src/app/node_modules/express/lib/router/index.js:365:14)
at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:410:3)
at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
TypeScript - Fastify
¶Errors. fastify.FastifyError. src. FastifyError is a custom error object that includes status code and validation results. It extends the Node.js ...
Read more >express-http-proxy - npm
decorateRequest has been REMOVED, and will generate an error when called. See proxyReqOptDecorator and decorateProxyReqBody .
Read more >NestJS/Fastify Cookie Unhandled Promise Rejection Warning
I'm trying to get fastify-cookie working on my NestJS project and I am receiving the following error:.
Read more >Express-http-proxy NPM - npm.io
By default, express-http-proxy will pass any errors except ECONNRESET to next, ... decorateRequest has been REMOVED, and will generate an error when called....
Read more >Getting Started with Fastify Node.js Framework and Faunadb
Add folder and a file as errors/FaunaError.js and paste the following ... decorateRequest() method which lets Fastify know that our request ...
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
I guess it should be possible to detect if the function exists or not - and then decide which API to use.
That would be the update for v1.16.0. For all who are waiting for a fix. I’ve avoided function definitions in functions as well as possible, this is terrible to read.