apigee-internal / microgateway

Microgateway: A lightweight Node.js based API gateway
Other
71 stars 78 forks source link

TypeError: restify.bodyParser is not a function, TypeError: restify.gzipResponse is not a function #316

Open newwuhan5 opened 3 years ago

newwuhan5 commented 3 years ago

When starting to run: node ./tests/server/hello/index.js TypeError: restify.bodyParser is not a function, TypeError: restify.gzipResponse is not a function

The code should be changed to look like this:

restify.gzipResponse() should be => restify.plugins.gzipResponse() and restify.bodyParser() should be => restify.plugins.gzipResponse()

newwuhan5 commented 3 years ago

I could send a PR if I can change the code. Thanks.