Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
newwuhan5 opened this issue Sep 23, 2020 · 1 comment

Comments

@newwuhan5
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant