Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

ERROR TypeError: Cannot read property '_id' of undefined #338

Description

@rmountjoy92

Hello, I recently updated to rocket chat version 3.8 and hubot has stopped working. Here is my logs:

npm info postinstall hubot-pugme@0.1.1

npm info postinstall hubot-google-translate@0.2.1

npm info install hubot-diagnostics@0.0.2

npm info postinstall hubot-diagnostics@0.0.2

hubot-maps@0.0.3 node_modules/hubot-maps

hubot-help@0.2.2 node_modules/hubot-help

hubot-shipit@0.2.1 node_modules/hubot-shipit

hubot-google-images@0.2.7 node_modules/hubot-google-images

hubot-rules@0.1.2 node_modules/hubot-rules

hubot-pugme@0.1.1 node_modules/hubot-pugme

hubot-google-translate@0.2.1 node_modules/hubot-google-translate

hubot-diagnostics@0.0.2 node_modules/hubot-diagnostics

npm info ok 

npm info it worked if it ends with ok

m info using npm@2.15.11

m info using node@v4.8.3

npm info preinstall rocketbot@0.0.0


npm info package.json hubot-scripts@2.17.2 No license field.


m info build /home/hubot


npm info linkStuff rocketbot@0.0.0


npm info build /home/hubot/node_modules/hubot-rocketchat


npm info preinstall hubot-rocketchat@1.0.11


npm info linkStuff hubot-rocketchat@1.0.11


npm info install hubot-rocketchat@1.0.11


npm info postinstall hubot-rocketchat@1.0.11


npm info install rocketbot@0.0.0


npm info postinstall rocketbot@0.0.0


npm info prepublish rocketbot@0.0.0

�
npm info ok 


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Starting Rocketchat adapter version 1.0.11...


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Once connected to rooms I will respond to the name: hera


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] WARNING No services ROCKETCHAT_ROOM provided to Hubot, using 


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Connecting To: mychatserver.com:443


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Successfully connected!


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO 


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Logging In


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Successfully Logged In


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO rid:  []


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO All rooms joined.


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Preparing Meteor Subscriptions..


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Subscribing to Room: __my_messages__


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Successfully subscribed to messages


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] INFO Setting up reactive message list...


[Tue Nov 17 2020 15:09:42 GMT+0000 (UTC)] WARNING Loading scripts from hubot-scripts.json is deprecated and will be removed in 3.0 (https://github.com/github/hubot-scripts/issues/1113) in favor of packages for each script.




Your hubot-scripts.json is empty, so you just need to remove it.


[Tue Nov 17 2020 15:10:01 GMT+0000 (UTC)] INFO Message received with ID id


[Tue Nov 17 2020 15:10:01 GMT+0000 (UTC)] ERROR TypeError: Cannot read property '_id' of undefined


    at /home/hubot/node_modules/hubot-rocketchat/src/rocketchat.js:193:27


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/src/rocketchat_driver.js:231:22)


    at /home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:170:12


    at Array.forEach (native)


    at [object Object].Asteroid.utils.EventEmitter._emit (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:169:22)


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:749:8)


    at /home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:170:12


    at Array.forEach (native)


    at [object Object].Asteroid.utils.EventEmitter._emit (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:169:22)


    at [object Object].Set.put (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:965:7)


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:1020:8)


    at /home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:170:12


    at Array.forEach (native)


    at [object Object].Asteroid.utils.EventEmitter._emit (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:169:22)


    at [object Object].Set.put (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:965:7)


    at [object Object].Collection._remoteToLocalUpdate (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:695:12)


    at [object Object].Asteroid._onChanged (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:453:36)


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/dist/asteroid.node.js:392:8)


    at /home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/ddp.js/src/ddp.js:125:12


    at Array.forEach (native)


    at [object Object].DDP._emit (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/ddp.js/src/ddp.js:124:22)


    at [object Object].DDP._on_changed (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/ddp.js/src/ddp.js:248:8)


    at [object Object].DDP._on_socket_message (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/ddp.js/src/ddp.js:326:26)


    at [object Object].EventTarget.dispatchEvent (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js:22:30)


    at [object Object].instance._receiveMessage (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/lib/faye/websocket/api.js:150:10)


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/lib/faye/websocket/api.js:34:49)


    at emitOne (events.js:82:20)


    at [object Object].emit (events.js:169:7)


    at [object Object].<anonymous> (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver/hybi.js:451:14)


    at pipe (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/pipeline/index.js:37:40)


    at [object Object].Pipeline._loop (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/pipeline/index.js:44:3)


    at [object Object].Pipeline.processIncomingMessage (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/pipeline/index.js:13:8)


    at [object Object].instance.processIncomingMessage (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/lib/websocket_extensions.js:133:20)


    at [object Object].instance._emitMessage (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver/hybi.js:442:22)


    at [object Object].instance._emitFrame (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver/hybi.js:405:19)


    at [object Object].instance.parse (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver/hybi.js:141:18)


    at [object Object].instance.parse (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver/client.js:62:58)


    at [object Object].IO.write (/home/hubot/node_modules/hubot-rocketchat/node_modules/asteroid/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/streams.js:80:16)


    at TLSSocket.ondata (_stream_readable.js:542:20)


    at emitOne (events.js:77:13)


    at TLSSocket.emit (events.js:169:7)


    at readableAddChunk (_stream_readable.js:153:18)


    at TLSSocket.Readable.push (_stream_readable.js:111:10)


    at TLSWrap.onread (net.js:540:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions