Bug 474696

Summary: Cannot upload images on Todokon, server error: Unprocessable Entity
Product: [Applications] Tokodon Reporter: alxdre301
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carl, josh
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Android   
OS: Android 8.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Error showing after uploading an image.

Description alxdre301 2023-09-19 15:33:39 UTC
Created attachment 161725 [details]
Error showing after uploading an image.

SUMMARY
Trying uploading images to a Mastodon instance via Tokodon, the image cannot be uploaded, throwing a server error.

STEPS TO REPRODUCE
1.  Click on the Create post button, select the add attachments button
2. Select an image file
3. The image cannot be uploaded.

OBSERVED RESULT

The error is shown:
Failed to contact server: Error transferring <mastodon-instance-website>/api/v1/media-server replied: Unprocessable Entity. Please check your settings.

EXPECTED RESULT

The uploaded image should be shown in the post creation screen.

SOFTWARE/OS VERSIONS
Android: 8.1.0
KDE Plasma Version: 
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Joshua Goins 2023-10-02 11:44:53 UTC
This is odd, this is a standard Mastodon server. Do you still have the media file you tried to attach?
Comment 2 Joshua Goins 2023-10-19 20:00:22 UTC
Still waiting for info, and I'm asking around other people who I know use Tokodon on Android and see if they can reproduce it
Comment 3 alxdre301 2023-10-21 15:07:55 UTC
(In reply to Joshua Goins from comment #1)
> This is odd, this is a standard Mastodon server. Do you still have the media
> file you tried to attach?

I think it appears to be a permission issue of Tokodon, I tried a PNG file, a MP4 file and JPEG file, none of them worked. So I think uploading the media here is useless. I can't be sure that how can I see the logs
Comment 4 Joshua Goins 2023-10-22 03:15:30 UTC
Gotcha, I'll see if it's a permissions issue
Comment 5 Joshua Goins 2024-10-19 21:09:22 UTC
D'oh, I only realized until now this was on Android - sorry. Still keeping this open because I can't upload images on Android either, and I think I know why.
Comment 6 Joshua Goins 2024-11-09 00:29:07 UTC
It seems I can attach media on Android again, closing as fixed