Skip to content

Cannot switch to old mode now :( #4

@mikeal

Description

@mikeal

I get this error running the test for the gzip client.

https://github.com/mikeal/http-duplex-gzip-client/blob/master/test.js

% node test.js

_stream_readable.js:720
    throw new Error('Cannot switch to old mode now.');
          ^
Error: Cannot switch to old mode now.
    at emitDataEvents (_stream_readable.js:720:11)
    at IncomingMessage.Readable.resume (_stream_readable.js:705:3)
    at HTTPGzipDuplex.HTTPDuplex._read (/Users/mikeal/Documents/git/http-duplex-client/client.js:40:30)
    at HTTPGzipDuplex.Readable.read (_stream_readable.js:320:10)
    at flow (_stream_readable.js:579:52)
    at HTTPGzipDuplex.pipeOnReadable (_stream_readable.js:614:5)
    at HTTPGzipDuplex.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions