Skip to content

madCow #130

@RanAbramson

Description

@RanAbramson

Hi,
we use our project with swagger-node-runner.
also using
swagger_router, swagger-json-output.
recently we tried to add support for gzip with the following line
"app.use(restify.plugins.gzipResponse());"
we use restify as you can tell.

when trying to add it we get the following error:

Error: write after end
at writeAfterEnd (_stream_writable.js:236:12)
at Gzip.Writable.write (_stream_writable.js:287:5)
at flush (project/node_modules/restify/lib/response.js:832:13)
at ServerResponse.__send (project/node_modules/restify/lib/response.js:500:16)
at ServerResponse.send (project/node_modules/restify/lib/response.js:303:28)
at emitErrorsDone (project/node_modules/restify/lib/server.js:1052:29)
at onResult (project/node_modules/restify/lib/server.js:1293:20)
at Immediate. (project/node_modules/vasync/lib/vasync.js:175:30)
at Immediate._onImmediate (project/node_modules/async-listener/glue.js:188:31)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)

any advise?

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