Skip to content

Object domain.campfirenow.com has no method 'enter' #311

Closed
madmax opened this Issue Jul 9, 2012 · 4 comments

3 participants

@madmax
madmax commented Jul 9, 2012
[Mon Jul 09 2012 10:00:12 GMT+0200 (CEST)] ERROR Campfire error: TypeError: Object domain.campfirenow.com has no method 'enter'
TypeError: Object neubloc.campfirenow.com has no method 'enter'
    at CampfireStreaming.EventEmitter.emit (events.js:80:19)
    at IncomingMessage.CampfireStreaming.Room.listen (/home/gderebecki/hubot/src/adapters/campfire.coffee:245:42)
    at IncomingMessage.EventEmitter.emit (events.js:88:17)
    at IncomingMessage._emitData (http.js:356:12)
    at HTTPParser.parserOnBody [as onBody] (http.js:123:21)
    at CleartextStream.socketOnData [as ondata] (http.js:1356:20)
    at CleartextStream.CryptoStream._push (tls.js:396:27)
    at SecurePair.cycle (tls.js:751:20)
    at EncryptedStream.CryptoStream.write (tls.js:131:13)
    at Socket.ondata (stream.js:38:26)

It looks like it raise at line 171 (master branch)

self.emit data.type, data.id, data.created_at, data.room_id, data.user_id, data.body
@tombell
tombell commented Jul 9, 2012

Could you share your configuration options (masking any api keys/passwords)?

@atmos
atmos commented Jul 9, 2012

What version of node? My guess is 0.8.

@madmax
madmax commented Jul 10, 2012

I don't think it is node problem because error also appears on hubot 2.2.0 (node v0.6.12) and on master branch (node v0.8).

Configuration is very simple

export HUBOT_CAMPFIRE_TOKEN="..."
export HUBOT_CAMPFIRE_ROOMS="507218"
export HUBOT_CAMPFIRE_ACCOUNT="neubloc"

I removed all plugins and it still not help.

Intresting think is that all was working and next day it wasn't without any config changes.

PS. Backtrace is from master/v0.8 version.

@tombell tombell added a commit that closed this issue Jul 10, 2012
@tombell tombell Rename @domain property in campfire.coffee.
@domain is a property of EventEmitter now, so renamed to @host. This fixes #311
2dc35cc
@tombell tombell closed this in 2dc35cc Jul 10, 2012
@tombell
tombell commented Jul 10, 2012

Debugging like a boss :metal:.

Working on one more update for hubot then I'll tag and ship 2.3

@marclar marclar pushed a commit that referenced this issue Aug 17, 2012
@tombell tombell Rename @domain property in campfire.coffee.
@domain is a property of EventEmitter now, so renamed to @host. This fixes #311
78d6547
@glucero glucero pushed a commit to absperf/hubot that referenced this issue Aug 20, 2012
@tombell tombell Rename @domain property in campfire.coffee.
@domain is a property of EventEmitter now, so renamed to @host. This fixes #311
90ead40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.