joyent/node — Issue #1889: Error: write UNKNOWN exception
Author: japj
Created: 2011-10-14 15:27:13+00:00
State: open

While testing an application on node-0.5.9 using node-amqp I get:

node.js:203
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: write UNKNOWN
at errnoException (net_uv.js:569:11)
at Connection.write (net_uv.js:392:18)
at Connection._sendMethod (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:1013:8)
at Message.acknowledge (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:1276:25)
at Queue.shift (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:1501:23)
at C:\sandbox\node-amqp\test2.js:45:11
at Message. (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:1490:28)
at Message.emit (events.js:64:17)
at Queue._onContent (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:1715:25)
at AMQPParser.onContent (C:\sandbox\node-amqp\node_modules\amqp\amqp.js:815:32)

This behaviour is probably caused by my own application as it is actually closing the amqp connection fairly often as part of a test.

However I was not expecting the "UNKNOWN" exception from node as this is rather limiting to finding out exactly what the problem is.