Unable to connect Firehose #484

Closed
jpope777 opened this Issue Mar 26, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

jpope777 commented Mar 26, 2013

I have attempted to connect my pump (pump.jpope.org) to ofirehose.com via the config option "firehose": "ofirehose.com", to no avail.

To debug this further, I setup a firehose instance to connect which resulted with the same errors. I also setup another pump instance and this instance was able to connect and post to the firehose. In a last effort, I installed a fresh copy of pump via git, edited paths in the config as necessary and restarted pump.jpope.org from this new location. This fresh instance still cannot connect to the firehose.

Example error output from the logs:

[[pump.io side]]

[2013-03-25T16:14:02.805Z] ERROR: pump.io/firehose/13407 on pump.jpope.org: (firehose=dev.jpope.org)
    SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/srv/http/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 Socket.socket.ondata (http.js:1825:22)
        at TCP.onread (net.js:404:27)
    --
    HTTPError: SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/srv/http/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 Socket.socket.ondata (http.js:1825:22)
        at TCP.onread (net.js:404:27)
        at Function.pinger (/srv/http/pump/lib/firehose.js:91:23)
        at next (/srv/http/pump/node_modules/step/lib/step.js:51:23)
        at IncomingMessage.web.mod (/srv/http/pump/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 Socket.socketOnData [as ondata] (http.js:1485:20)
        at TCP.onread (net.js:404:27)

[[ofirehose side]]

192.168.1.100 - - [Mon, 25 Mar 2013 16:10:27 GMT] "OPTIONS /ping HTTP/1.1" 200 4 "-" "pump.io/0.3.0-alpha.1"
SyntaxError: Unexpected end of input
    at Object.parse (native)
    at IncomingMessage.exports.parse.application/json (/srv/http/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 Socket.socket.ondata (http.js:1825:22)
    at TCP.onread (net.js:404:27)

And more output from pump:

[2013-03-26T01:03:27.773Z] ERROR: pump.io/firehose/7966 on pump.jpope.org: (firehose=dev.jpope.org)
    SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/jpope/build/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:85:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at Socket.socket.ondata (http.js:1690:22)
        at TCP.onread (net.js:403:27)
    --
    HTTPError: SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/jpope/build/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:85:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at Socket.socket.ondata (http.js:1690:22)
        at TCP.onread (net.js:403:27)
        at Function.pinger (/srv/http/pump.jpope.org/lib/firehose.js:91:23)
        at next (/srv/http/pump.jpope.org/node_modules/step/lib/step.js:51:23)
        at IncomingMessage.web.mod (/srv/http/pump.jpope.org/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 Socket.socketOnData [as ondata] (http.js:1485:20)
        at TCP.onread (net.js:404:27)
[2013-03-26T01:03:27.774Z] ERROR: pump.io/distributor/7966 on pump.jpope.org: undefined
    HTTPError: SyntaxError: Unexpected end of input
        at Object.parse (native)
        at IncomingMessage.exports.parse.application/json (/home/jpope/build/ofirehose/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
        at IncomingMessage.EventEmitter.emit (events.js:85:17)
        at IncomingMessage._emitEnd (http.js:366:10)
        at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
        at Socket.socket.ondata (http.js:1690:22)
        at TCP.onread (net.js:403:27)
        at Function.pinger (/srv/http/pump.jpope.org/lib/firehose.js:91:23)
        at next (/srv/http/pump.jpope.org/node_modules/step/lib/step.js:51:23)
        at IncomingMessage.web.mod (/srv/http/pump.jpope.org/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 Socket.socketOnData [as ondata] (http.js:1485:20)
        at TCP.onread (net.js:404:27)

/srv/http/pump.jpope.org/node_modules/step/lib/step.js:39
        throw arguments[0];
                       ^
Error: Parse Error
    at Socket.socketOnData (http.js:1485:20)
    at TCP.onread (net.js:404:27)
Forever detected script exited with code: 0
Forever restarting script for 4 time

Pump version used: Master at commit c61cb04
ofirehose version used: Master at commit 6493f3ccd8150ca84c4f0c1fb63dc9a5946ef162

Contributor

jpope777 commented Jul 5, 2013

I can't recall when, but this was fixed. pump.jpope.org can connect properly to ofirehose.

jpope777 closed this Jul 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment