askmike / bitstamp

Bitstamp REST API wrapper
80 stars 54 forks source link

Sometimes when Bitstamp closes the connection abrupt the error throws #6

Closed askmike closed 10 years ago

askmike commented 10 years ago

While it should be passed to the callback. Todo: replicate & handle correctly.

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: socket hang up
at SecurePair.error (tls.js:999:23)
at EncryptedStream.CryptoStream._done (tls.js:695:22)
at CleartextStream.read [as _read] (tls.js:496:24)
at CleartextStream.Readable.read (_stream_readable.js:320:10)
at EncryptedStream.onCryptoStreamFinish (tls.js:301:47)
at EncryptedStream.g (events.js:175:14)
at EncryptedStream.EventEmitter.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:354:12)
at endWritable (_stream_writable.js:361:3)
at EncryptedStream.Writable.end (_stream_writable.js:339:5)
at EncryptedStream.CryptoStream.end (tls.js:633:31)
at Socket.onend (_stream_readable.js:483:10)

EDIT: error was on windows, might be platform specific.

askmike commented 10 years ago

Closing this for now since I am not able to replicate it (on *NIX systems)