hellozedan / node-xmpp-bosh

Automatically exported from code.google.com/p/node-xmpp-bosh
0 stars 0 forks source link

Cannot call method 'push' of undefined #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Just had one of my bosh servers die with this error:

/usr/lib/nodejs/node-xmpp-bosh/src/session.js:807
        this.pending_bosh_responses[stream.name].push(attrs);
                                                 ^
TypeError: Cannot call method 'push' of undefined
    at Object.enqueue_bosh_response (/usr/lib/nodejs/node-xmpp-bosh/src/session.js:807:50)
    at Object.send_stream_terminate_response (/usr/lib/nodejs/node-xmpp-bosh/src/stream.js:79:17)
    at /usr/lib/nodejs/node-xmpp-bosh/src/session.js:633:24
    at Array.forEach (native)
    at Object.handle_client_stream_terminate_request (/usr/lib/nodejs/node-xmpp-bosh/src/session.js:625:30)
    at Object._process_one_request (/usr/lib/nodejs/node-xmpp-bosh/src/session.js:276:18)
    at Object.process_requests (/usr/lib/nodejs/node-xmpp-bosh/src/session.js:320:22)
    at process_bosh_request (/usr/lib/nodejs/node-xmpp-bosh/src/bosh.js:182:25)
    at bosh_request_handler (/usr/lib/nodejs/node-xmpp-bosh/src/bosh.js:237:9)
    at /usr/lib/nodejs/node-xmpp-bosh/src/http-server.js:69:17

I assume the pending_bosh_responses array hasn't been initialised.

What steps will reproduce the problem?
I'm not sure exactly what triggers this yet.

What is the expected output? What do you see instead?
It crashes when this happens.

What version of the product are you using? On what operating system?
node-xmpp-bosh 0.5.6
nodejs 0.6.8
CentOS 5.7

Please provide any additional information below.

Original issue reported on code.google.com by not...@gmail.com on 27 Jan 2012 at 10:25

GoogleCodeExporter commented 8 years ago

Original comment by dhruvb...@gmail.com on 1 Feb 2012 at 1:59

GoogleCodeExporter commented 8 years ago
This has been fixed on master. Will make a release with this fix soon.
Please check the github page for more info. Here is another report for the same 
issue: https://github.com/dhruvbird/node-xmpp-bosh/issues/4

Original comment by dhruvb...@gmail.com on 11 Feb 2012 at 8:58