Skip to content

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

@newwuhan5

Description

@newwuhan5

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions