GithubHelp home page GithubHelp logo

Comments (7)

loafoe avatar loafoe commented on June 12, 2024 1

@gajus the below error message probably explains this:

ERROR Failed to load profiles from server.

Make sure you are using Mattermost 3.5.x. Unfortunately the adapter is only compatible with the latest version as the server API is really volatile.

Also please upgrade to version 3.5.1 of hubot-matteruser which I just released. It contains some fixed which might help.

from hubot-matteruser.

nickolasclarke avatar nickolasclarke commented on June 12, 2024

I'm also seeing this. I am on "hubot-matteruser": "^3.5.1",

[Wed Dec 14 2016 19:49:24 GMT+0800 (DST)] ERROR Failed to load profiles from server.
[Wed Dec 14 2016 19:49:24 GMT+0800 (DST)] INFO Error: [object Object]

full dump:

nclarke@NCLARKE:~/repos/hubot$ ./bin/hubot -a matteruser
[Wed Dec 14 2016 19:48:43 GMT+0800 (DST)] INFO Logging in...
[Wed Dec 14 2016 19:48:43 GMT+0800 (DST)] DEBUG POST /users/login

[Wed Dec 14 2016 19:48:54 GMT+0800 (DST)] INFO Websocket URL: wss://myserver.org:443/api/v3/users/websocket
[Wed Dec 14 2016 19:48:54 GMT+0800 (DST)] INFO Logged in as user "hubot" but not connected yet.
[Wed Dec 14 2016 19:48:54 GMT+0800 (DST)] DEBUG GET /users/initial_load
[Wed Dec 14 2016 19:49:05 GMT+0800 (DST)] DEBUG Found 1 teams.
[Wed Dec 14 2016 19:49:16 GMT+0800 (DST)] DEBUG Testing myteam == myteam
[Wed Dec 14 2016 19:49:16 GMT+0800 (DST)] DEBUG Found team! tauuaunahbg9ppichcqeh77gko
[Wed Dec 14 2016 19:49:16 GMT+0800 (DST)] DEBUG GET /teams/tauuaunahbg9ppichcqeh77gko/users/0/1000
[Wed Dec 14 2016 19:49:16 GMT+0800 (DST)] DEBUG GET /teams/tauuaunahbg9ppichcqeh77gko/channels/
[Wed Dec 14 2016 19:49:16 GMT+0800 (DST)] INFO Connecting...
[Wed Dec 14 2016 19:49:22 GMT+0800 (DST)] INFO Connected to Mattermost.
[Wed Dec 14 2016 19:49:22 GMT+0800 (DST)] INFO Starting pinger...
[Wed Dec 14 2016 19:49:23 GMT+0800 (DST)] INFO Mattermost server: 3.4.0.3.4.0.d8ef17d8078e1051eb91f9b08217891d

[Wed Dec 14 2016 19:49:24 GMT+0800 (DST)] ERROR Failed to load profiles from server.
[Wed Dec 14 2016 19:49:24 GMT+0800 (DST)] INFO Error: [object Object]
[Wed Dec 14 2016 19:49:52 GMT+0800 (DST)] INFO ping
[Wed Dec 14 2016 19:49:52 GMT+0800 (DST)] INFO ACK ping

[Wed Dec 14 2016 19:50:06 GMT+0800 (DST)] ERROR TypeError: Cannot set property 'dm_channel_id' of undefined
  at Matteruser.message (/home/nclarke/repos/hubot/node_modules/hubot-matteruser/src/matteruser.coffee:138:11, <js>:213:31)
  at Client.<anonymous> (/home/nclarke/repos/hubot/node_modules/hubot-matteruser/src/matteruser.coffee:1:1, <js>:3:61)
  at emitOne (events.js:96:13)
  at Client.emit (events.js:188:7)
  at Client.onMessage (/home/nclarke/repos/hubot/node_modules/mattermost-client/src/client.coffee:210:17, <js>:277:23)
  at WebSocket.<anonymous> (/home/nclarke/repos/hubot/node_modules/mattermost-client/src/client.coffee:157:13, <js>:216:22)
  at emitTwo (events.js:106:13)
  at WebSocket.emit (events.js:191:7)
  at Receiver.ontext (/home/nclarke/repos/hubot/node_modules/ws/lib/WebSocket.js:841:10)
  at /home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:536:18
  at Receiver.applyExtensions (/home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:371:5)
  at /home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:508:14
  at Receiver.flush (/home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:347:3)
  at Receiver.finish (/home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:541:12)
  at Receiver.expectHandler (/home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:499:31)
  at Receiver.add (/home/nclarke/repos/hubot/node_modules/ws/lib/Receiver.js:103:24)
  at TLSSocket.realHandler (/home/nclarke/repos/hubot/node_modules/ws/lib/WebSocket.js:825:20)
  at emitOne (events.js:96:13)
  at TLSSocket.emit (events.js:188:7)
  at readableAddChunk (_stream_readable.js:176:18)
  at TLSSocket.Readable.push (_stream_readable.js:134:10)
  at TLSWrap.onread (net.js:548:20)

from hubot-matteruser.

nickolasclarke avatar nickolasclarke commented on June 12, 2024

turns out we are mattermost server 3.4. I thought we were on 3.5. I'm putting in a request to have the server upgraded to the latest version, and if this is still an issue, I'll let you know.

from hubot-matteruser.

loafoe avatar loafoe commented on June 12, 2024

@nickolasclarke ok, keep us posted. thx for the feedback!

from hubot-matteruser.

elsifaka avatar elsifaka commented on June 12, 2024

I have mattermost 3.5.1, hubot 2.19.0, mattermost-client 3.5.1 and hubot-matteruser 3.5.1 and saw the same issue.
But only when an user from a different team send a DM to the bot. everything works fine in group channels.
The bot has been invited to all teams, but robot brain only has data for the users of the group set with MATTERMOST_GROUP.

from hubot-matteruser.

loafoe avatar loafoe commented on June 12, 2024

@elsifaka ah, interesting! Indeed the bot only loads one single group. I think we could add support for multiple groups in a future release.

@nickolasclarke do you also have multiple groups on your Mattermost server?

from hubot-matteruser.

nickolasclarke avatar nickolasclarke commented on June 12, 2024

@loafoe nope. Also, forgot to update this. Upgrading indeed fixed the issue.

from hubot-matteruser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.