hubot-matteruser icon indicating copy to clipboard operation
hubot-matteruser copied to clipboard

connect mattermost not reply in channels

Open codinggg opened this issue 3 years ago • 0 comments

Hello, I use hubot to connect mattermost. Finally, I can talk with hubot in one-by-one, I add bot to channel, but bot can't reply any message alought I send 'help' 'time' message or I @bot 'help' 'time' message. How can bot reply message in channels, below is hubot start run log. mattermost version: 6.3.0 hubot-matteruser 5.4.5

I don't know how solve it. Please help me. Thank you

Creating network "hubot-matteruser_default" with the default driver Creating hubot-matteruser_hubot-matteruser_1 ... done Attaching to hubot-matteruser_hubot-matteruser_1 hubot-matteruser_1 | up to date in 0.811s hubot-matteruser_1 | hubot-matteruser_1 | 3 packages are looking for funding hubot-matteruser_1 | run npm fund for details hubot-matteruser_1 | hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Logging in with personal access token... hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users/me hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Websocket URL: ws://192.168.0.225:8265/api/v4/websocket hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Logged in as user "ai_manager" but not connected yet. hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users/me hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users/me hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users/me/preferences hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users/me/preferences hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users/me/teams hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users/me/teams hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] ERROR TypeError: Cannot read property 'error' of null hubot-matteruser_1 | at p._onPreferences (/usr/src/hubot-matteruser/node_modules/mattermost-client/dist/mattermost-client.js:1:3515) hubot-matteruser_1 | at Request._callback (/usr/src/hubot-matteruser/node_modules/mattermost-client/dist/mattermost-client.js:1:11951) hubot-matteruser_1 | at Request.self.callback (/usr/src/hubot-matteruser/node_modules/request/request.js:185:22) hubot-matteruser_1 | at Request.emit (events.js:400:28) hubot-matteruser_1 | at Request. (/usr/src/hubot-matteruser/node_modules/request/request.js:1154:10) hubot-matteruser_1 | at Request.emit (events.js:400:28) hubot-matteruser_1 | at IncomingMessage. (/usr/src/hubot-matteruser/node_modules/request/request.js:1076:12) hubot-matteruser_1 | at Object.onceWrapper (events.js:519:28) hubot-matteruser_1 | at IncomingMessage.emit (events.js:412:35) hubot-matteruser_1 | at endReadableNT (internal/streams/readable.js:1334:12) hubot-matteruser_1 | at processTicksAndRejections (internal/process/task_queues.js:82:21) hubot-matteruser_1 | hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loaded Me... hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Found 1 teams. hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Found team! ibnqrbxktpbxupfnxqswn9esey hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users?page=0&per_page=200&in_team=ibnqrbxktpbxupfnxqswn9esey hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users?page=0&per_page=200&in_team=ibnqrbxktpbxupfnxqswn9esey hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users/me/teams/ibnqrbxktpbxupfnxqswn9esey/channels hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users/me/teams/ibnqrbxktpbxupfnxqswn9esey/channels hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Connecting... hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Connected to Mattermost. hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Sending challenge... hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Starting pinger... hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Found 4 subscribed channels. hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Found 4 profiles. hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Loading /users?page=1&per_page=200&in_team=ibnqrbxktpbxupfnxqswn9esey hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO api url:http://192.168.0.225:8265/api/v4/users?page=1&per_page=200&in_team=ibnqrbxktpbxupfnxqswn9esey hubot-matteruser_1 | [Fri Jan 21 2022 08:44:17 GMT+0000 (Coordinated Universal Time)] INFO Mattermost server: 6.3.0.6.3.0.b4d88b25f2f3523c5e56372d3140bb09.false hubot-matteruser_1 | [Fri Jan 21 2022 08:44:18 GMT+0000 (Coordinated Universal Time)] INFO hubot-redis-brain: Using default redis on localhost:6379 hubot-matteruser_1 | [Fri Jan 21 2022 08:44:47 GMT+0000 (Coordinated Universal Time)] INFO ping hubot-matteruser_1 | [Fri Jan 21 2022 08:45:05 GMT+0000 (Coordinated Universal Time)] INFO Someone is typing -> {"event":"typing","data":{"parent_id":"","user_id":"4hkfb4h91bfpifn9hhuxma53cr"},"broadcast":{"omit_users":{"4hkfb4h91bfpifn9hhuxma53cr":true},"user_id":"","channel_id":"qxx5qkcx7ffydjpyz46pg3xceo","team_id":""},"seq":2}

codinggg avatar Jan 21 '22 09:01 codinggg