Hubot Failed to log to Mattermost Chat
See original GitHub issueHello all,
When i try to launch hubot in Mattermost I got this error :
./bin/hubot --adapter matteruser
npm WARN hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none is installed. You must install peer dependencies yourself.
up to date in 1.664s
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO Logging in...
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO api url:https://182.21.221.170::8065/api/v4/users/login
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] ERROR Login call failed
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO Reconnecting in 1000ms
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Attempting reconnect
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Logging in...
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO api url:https://182.21.221.170::8065/api/v4/users/login
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] ERROR Login call failed
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Reconnecting in 2000ms
^C
My variable are :
env | grep MATT*
MATTERMOST_HOST=182.21.221.170:8065
MATTERMOST_PASSWORD=mypassword
MATTERMOST_GROUP=myteam
MATTERMOST_USER=myuser
Hubot and Mattermost are on the same machine and when i try to connect directly with the user it works, but when i try to connect using Hubot it don’t work and i get the error above.
Can someone help me with this plz ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Hubot and mattermost adapter - General Questions
I run the “yo hubot” command and it asks me for the adapter, ... --adapter mattermost-adapter and ended up with error login call...
Read more >Troubleshooting hubot integration - Mattermost Forum
You can check the logs for Mattermost in the ./logs/mattermost.log file within your mattermost installation directory. If the outgoing webhooks are failing then ......
Read more >Troubleshooting Mattermost issues
Logging for the Mattermost Push Notification Service is handled via system log with logger and is appended to /var/log/syslog . Review Mattermost environment....
Read more >[SOLVED] Mattermost + hubot + docker - General Questions
Now, I have no error in Mattermost logs. So I can launch hubot with this configuration : MATTERMOST_ENDPOINT=/hubot/incoming
Read more >All Time - Mattermost Discussion Forums - Mattermost Forum
3, 3644, June 29, 2016. Post API for bot using mattermost-preview docker image returns 401 error ... [SOLVED] Messages getting duplicated in chat....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok it works now.
Thanks for your answer !
If it’s on the same host
MATTERMOST_HOST=127.0.0.1
should work. TLS is enabled by default. What do you get when you setMATTERMOST_LOG_LEVEL=debug
?