Tusky
Tusky copied to clipboard
Media Upload Issues
When I attempt to upload pictures from my cell phone to https://mastodon.technology they almost always fail. No error other than "media upload failed".
-
Tusky Version: 4.1
-
Android Version: 9.0
-
Android Device: Pixel XL
-
Mastodon instance (if applicable): https://mastodon.technology
-
[x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
Edit: @ashfurrow
Yes, there seem to be problems with our upload code. I will add better error messages so we can finally nail them down.
I'm also experiencing this.
- Tusky version: 4.1
- OS: LineageOS 15.1 (Android 8.1)
- Device: Moto G5 Plus
- Mastodon instance: social.coop
almost always fail
Are the files that work PNG, GIF, or videos -- something that "send reduced" wouldn't touch?
edit: I might be misunderstanding this as at a glance I thought perhaps that Tusky was including "send-reduced" into the codebase to make attachments/uploads smaller and faster.
@gudenau Can you try the latest version? Seems to be working fine to me.
I've had a similar issue on other instances but it was because of the instance itself, not the app.
@nevillepark Can you try the latest version? @gudenau @nevillepark For both of you: when you experience trouble uploading images try the instance in your browser too. If the issue happens on both then it's a problem with the instance. If it happens only on the app then it might be a problem with the app.
@mihudevcom It only happens with the app.
On a Pixel 3 running Tusky 5.1, with an account on mastodon.social, some (but not all) image uploads fail with “The upload failed” after a second. It seems that it's only screenshots (PNG) which I have cropped with the Pixel's built-in screenshot editor: full-screen screenshots (also PNG), new photographs, and existing photographs (JPEG) succeed. The same cropped screenshot uploads just fine using the web interface from Firefox on the same device.
Hello there, I encounter issues too. On a private instance (only a few accounts) image upload on toot creation is inconsistent. Just now, I tried to upload twice it failed. Looked around in options, wrote a toot. Then I tried again, with the same image, and it worked.
Picture upload works from browser. It's pictures from my phone, JPG, that fail regularly but not consistently
Tusky version: 12 Android version: 9 Android device: Asus Zenfone 5
Can reproduce, Pixel 2, Android 11, Tusky 15.1
Video uploads fail 3/3 tries, photo uploads work but still randomly fail
Same. Running version 15.1 on LineageOS. Also has similar media issues with AndStatus and Fedilab, so it may be related to the instance?
I'm running glitch-soc on my instance, I doubt that's the issue.
I can upload perfectly well from the webapp but not from Tusky, for the two instances I tested. So there’s something going on between Tusky and Mastodon somewhere that makes much more flaky than it should.
I find it weird that the progress ring fills up, and then there’s a weird delay where nothing happens for a few seconds and often, with my fast connection, it’s where it fails.
Note that the issue is still here in Tusky 16.0 beta 2. I tried to use logcat to see what’s going on, but nothing is logged.
Sounds like a timeout issue. The progress ring shows the percentage of uploaded bytes, and then it waits for the server to reply. And (I'm not sure about this part) when the server takes too long to respond because it is still processing the upload, Tusky ends the connection because it only waits for 30 seconds. Does this sound like something that could be happening? How long do media uploads take on the web for the same instance? @ariasuni
Oh wait. We are using /api/v1/media to upload media, but there is /api/v2/media which is asynchronous (it does not wait for the media to be processed before returning) and should take way shorter. Fix coming asap, but I am not sure if we can get it into Tusky v16.
Can you please test if this still occurs with the current Tusky nightly? @ariasuni
Can you please test if this still occurs with the current Tusky nightly? @ariasuni
I have not noticed this issue recently.
It’s way, way better! But when uploading four photos at once, some just get stuck with the round loading bar at 99% instead of being «removed» like before, but it’s hard to reproduce so…
I made another change, please test it in the next release
Hi, I am having the same issue, "upload failed" for Image files.
Android 10, one plus 5 phone/app , Tusky 17.
image upload Works fine on desktop, no go on app.
@[email protected]
anything i should try?
thank you.
I made another change, please test it in the next release
Hi, is next release 17 or higher than 17. Thanks
@DonF22 Version 18
Confirmed, my issue is fixed in app version 18. Many thanks!!
lineage_gts4lv-userdebug 11 RQ3A.211001.001 Tusky 18.0 mastodon on social.librem.one
Upload does not work. It stopped working on my device a while ago, but I can't say exactly when.
Is there a way to get/provide debugging information about why the upload is failing? I tried uploading pictures (screenshot, camera, edited - all the same).
I suspect some issues here may be related to #2770