Hubot: Cannot read property 'rid' of undefined


Since some time our hubot (boilerplate) isn’t working anymore. He goes online, but whenever we ask a question, like “hubot help”, below exception is thrown.

It think that this issue has arised after one of the latest updates, but don’t know exactly since when.

Any ideas on how to fix this?

Thanks a lot,

Server Setup Information

  • Version of Rocket.Chat Server: 3.15.0
  • Operating System: Ubuntu 18.04 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v 12.18.4
  • MongoDB Version: 4.0.19 / mmapv1 (oplog Enabled)
  • Proxy: nginx
  • Firewalls involved: none

Any additional Information

ERROR TypeError: Cannot read property 'rid' of undefined at ReactiveQuery.<anonymous> (/opt/rocketchat/hubot-rocketchat-boilerplate/node_modules/ at /opt/rocketchat/hubot-rocketchat-boilerplate/node_modules/asteroid/dist/asteroid.node.js:170:12 at Array.forEach (<anonymous>:null:null) at ReactiveQuery._emit (/opt/rocketchat/hubot-rocketchat-boilerplate/node_modules/asteroid/dist/asteroid.node.js:169:22) at Set.<anonymous> (/opt/rocketchat/hubot-rocketchat-boilerplate/node_modules/asteroid/dist/asteroid.node.js:749:8) at /opt/rocketchat/hubot-rocketchat-boilerplate/node_modules/asteroid/dist/asteroid.node.js:170:12 at Array.forEach (<anonymous>:null:null)

Update: we solved the problem by deleting the node_modules dir and reinstalling with npm install.

Cool and thanks for letting us know.

Is 3.15 on snap now?