e14n / ofirehose

Firehose for the federated social web
ofirehose.com
Apache License 2.0
16 stars 3 forks source link

Unicode content #3

Open mart-e opened 11 years ago

mart-e commented 11 years ago

I tried posting a message with unicode in pump. I got the following error in my logs (using ofriehose.com)

[2013-04-05T08:03:08.552Z] ERROR: pump.io/firehose/21280 on mart: (firehose=ofirehose.com)
    SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/ubuntu/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:93:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at CleartextStream.socket.ondata (http.js:1786:22)
        at CleartextStream.CryptoStream._push (tls.js:544:27)
        at SecurePair.cycle (tls.js:898:20)
        at EncryptedStream.CryptoStream.write (tls.js:285:13)
        at Socket.ondata (stream.js:38:26)
    --
    HTTPError: SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/ubuntu/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:93:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at CleartextStream.socket.ondata (http.js:1786:22)
        at CleartextStream.CryptoStream._push (tls.js:544:27)
        at SecurePair.cycle (tls.js:898:20)
        at EncryptedStream.CryptoStream.write (tls.js:285:13)
        at Socket.ondata (stream.js:38:26)
        at Function.pinger (/var/www/pump.mart-e.be/pump.io/lib/firehose.js:91:23)
        at next (/var/www/pump.mart-e.be/pump.io/node_modules/step/lib/step.js:51:23)
        at IncomingMessage.web.mod (/var/www/pump.mart-e.be/pump.io/lib/web.js:58:17)
        at IncomingMessage.EventEmitter.emit (events.js:126:20)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at CleartextStream.socketOnData [as ondata] (http.js:1367:20)
        at CleartextStream.CryptoStream._push (tls.js:526:27)
        at SecurePair.cycle (tls.js:880:20)
        at EncryptedStream.CryptoStream.write (tls.js:267:13)
[2013-04-05T08:03:08.554Z] ERROR: pump.io/distributor/21280 on mart: undefined
    HTTPError: SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/ubuntu/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:93:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at CleartextStream.socket.ondata (http.js:1786:22)
        at CleartextStream.CryptoStream._push (tls.js:544:27)
        at SecurePair.cycle (tls.js:898:20)
        at EncryptedStream.CryptoStream.write (tls.js:285:13)
        at Socket.ondata (stream.js:38:26)
        at Function.pinger (/var/www/pump.mart-e.be/pump.io/lib/firehose.js:91:23)
        at next (/var/www/pump.mart-e.be/pump.io/node_modules/step/lib/step.js:51:23)
        at IncomingMessage.web.mod (/var/www/pump.mart-e.be/pump.io/lib/web.js:58:17)
        at IncomingMessage.EventEmitter.emit (events.js:126:20)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at CleartextStream.socketOnData [as ondata] (http.js:1367:20)
        at CleartextStream.CryptoStream._push (tls.js:526:27)
        at SecurePair.cycle (tls.js:880:20)
        at EncryptedStream.CryptoStream.write (tls.js:267:13)

I got it only with messages containing unicode

example 1, example 2

Update: old instance is down, new example and output