mattermost 'slash issue show' can't handle large issues
Summary
If the issue you are trying to show (with slash issue show ) has a lot of content, the command fails.
Mattermost shows
There appears to be a problem with your internet connection.
Steps to reproduce
Create an issue with lots of text (I went overboard, and just added the output of dmesg, 2900 lines)
Assume it is issue 9
, and your slash command is gitlab
/gitlab issue show 9
Expected behavior
I was expecting a lot of data on the screen
(I had a hunch that large issues would create a usability issue, and that that command might need arguments to restrict the output to just the title, or maybe so many lines.)
Actual behavior
Mattermost waits for a while and then just display the following at the bottom of the screen:
There appears to be a problem with your internet connection.
Relevant logs and/or screenshots
This is the relevent entry in the mattermost log:
2016-12-16_07:11:29.95177 [2016/12/16 00:11:29 MST] [EROR] /api/v3/teams/ok1czjr13jgqpk13jyp9fanfjr/commands/execute:command code=500 rid=4x5tkifaopy8ipdarz66w6tfpe uid=7t1j3hkm3py3uqy4caxkscg7uw ip=127.0.0.1 An error while saving the command response to the channel [details: ]
Output of checks
This is with gitlab-ce 8.14.4 on a Linux Mint machine (sudo apt-get install gitlab-ce)
Possible fixes
Of course I don't really expect 3000 lines to be displayed. This would make the chat unusable.
But there should be a discussion about what is the purpose of the issue show
command. Even standard bug reports that involve installation and status logs already have too much info in a chat context.