matterhorn icon indicating copy to clipboard operation
matterhorn copied to clipboard

Issues sending attachments

Open THinnerichs opened this issue 1 year ago • 14 comments

Dear Matterhorn team, I couldn't find anything in the manuals and docs this time, too, so any information is highly welcome: While using Matterhorn, I am struggling to send attachments. I am able to select the attachment and it displays 1 attachment ... above the message box. However, it does not send the attachment, but just the text when pressing Enter/return afterwards. Am I missing some configuration again?

Thank you very much for your help!

THinnerichs avatar Jul 13 '22 10:07 THinnerichs

Hi @THinnerichs - which version of Matterhorn are you using? And how large is the attachment you are trying to send?

jtdaugherty avatar Jul 13 '22 14:07 jtdaugherty

Hey @jtdaugherty, thank you very much for the quick response! Attachments tried were ranging from 1kb to 2mb, nothing fancy. Matterhorn version:

matterhorn 50200.17.0 (develop@8661bff)
 using mattermost-api 50200.13.0 (HEAD@273adac)

THinnerichs avatar Jul 14 '22 05:07 THinnerichs

@THinnerichs when you attempt to send the message, does it contain any text at all? Or just the attachment?

jtdaugherty avatar Jul 14 '22 15:07 jtdaugherty

Sorry, for the delayed response, @jtdaugherty . I tried a reinstallation, went through my configs, and re-skimmed the docs in the mean time. Nothing new.

I tried both, but both fail. If I send attachment + text, only the text is sent.

THinnerichs avatar Jul 21 '22 12:07 THinnerichs

Hm, that's really strange. Can you tell me which version of Mattermost the server is running? (This can be obtained from the official web client for that server.)

jtdaugherty avatar Jul 21 '22 14:07 jtdaugherty

@THinnerichs it's been a while and I wanted to follow up again. Any chance you could find out what version of the server you were using when this happened? If we can't get any clues about this, I'd like to close it and re-open later if it happens again. Thanks!

jtdaugherty avatar Oct 03 '22 20:10 jtdaugherty

Hey @jtdaugherty, Sorry again for the delayed reply. Server mattermost version is 7.2.0-1, for one of the servers, but it happens on 3 different ones. I thus think its a client-side, i.e. Matterhorn, issue. I didn't mention earlier that I am using Arch myself, which apparently does not seem to be officially supported by Matterhorn. Still the same issue. :)

THinnerichs avatar Oct 04 '22 09:10 THinnerichs

No problem at all. Thanks for letting me know. I asked about the server version because it helps us track down whether Matterhorn has an incompatibility that we don't know about, not because I'm eager to blame the server. :) If you could get the versions of the other servers where you experienced this, that would also be very helpful.

jtdaugherty avatar Oct 04 '22 17:10 jtdaugherty

Hello @jtdaugherty,

I wanted to let you know that I encounter the same issue with mattermost server 7.9.1 and matterhorn 50200.17.0 with iTerm2 on macOS 13.3 :)

Regards

nlhomme avatar Mar 28 '23 08:03 nlhomme

@nlhomme I know it has been a while, but I'm wondering if you could provide more information. I have not been able to reproduce this problem. Do you get any error messages when the attachment fails to send? Or do you just see a text-only post with no attachments?

A request for you: could you run matterhorn with -l log.txt, send a message with an attachment, and then post the log file here? That might help us spot what is going on under the hood.

jtdaugherty avatar Apr 14 '23 03:04 jtdaugherty

Hello,

Here is the log file: log.txt

Here is the file I tried to send: bob-kelso

The file is located at /Users/nilho/Pictures/Memes/bob-kelso.jpg:

ls -lh /Users/nilho/Pictures/Memes/bob-kelso.jpg
-rwxrw-r--@ 1 nilho  staff   8,6K 15 sep  2020 /Users/nilho/Pictures/Memes/bob-kelso.jpg

I used this method to send the file: https://github.com/matterhorn-chat/matterhorn/blob/master/docs/UserGuide.md?plain=1#L187

nlhomme avatar Apr 17 '23 13:04 nlhomme

Thanks, @nlhomme. I looked at the log file you posted, but judging by that, no messages were posted at all in the session that generated that log file. For each posted message we should see a line containing this:

[LogAPI] [*] Function: submitRequest, event: HttpRequest POST "/posts" Nothing

jtdaugherty avatar Apr 17 '23 17:04 jtdaugherty

I swear I did the actions :p

nlhomme avatar Apr 19 '23 09:04 nlhomme

I don't mean to say that you didn't - only that the log doesn't provide the evidence. I was really confused by that but wasn't sure what to do. You could attempt another round of logging while posting an attachment and check the log for the lines I mentioned, I suppose.

jtdaugherty avatar Apr 19 '23 09:04 jtdaugherty