this post was submitted on 29 Feb 2024
8 points (90.0% liked)

Jerboa

10133 readers
52 users here now

Jerboa is a native-android client for Lemmy, built using the native android framework, Jetpack Compose.

Warning: You can submit issues, but between Lemmy and lemmy-ui, I probably won't have too much time to work on them. Learn jetpack compose like I did if you want to help make this app better.

Built With

Features

Installation / Releases

Support / Donate

Jerboa is made by Lemmy's developers, and is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project.

Crypto

Contact

founded 2 years ago
MODERATORS
 

I wanted to post screenshots of my riced KDE setup on Unixporn so I copied them to my phone using a USB cable. And now when I'm trying to add them to a post, it seems to always show the same error (Client request(POST https://lemmy.ml/pictrs/image) invalid: 403 . Text "<..."). The app has all the required permissions granted and I'm not banned from the community. What can it be then?

top 21 comments
sorted by: hot top controversial new old
[–] testAccount@lemmy.one 2 points 6 months ago (1 children)
[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago (2 children)
[–] testAccount@lemmy.one 2 points 6 months ago (1 children)

which android version? Lemmy and many others had their pictures upload turned off for a while but I do assume that is enabled again.

I assuming you don't have android studio or something to see the full logs?

I really need to get that log viewer finished.

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago

Android 13. I believe Unixporn does have image upload turned on. I'm not sure about the instance though. I am a bit familiar with Android Studio but don't have it installed on any machine now

[–] testAccount@lemmy.one 2 points 6 months ago (1 children)

Hmm, I just test it and it worked

https://lemmy.one/post/11276953

How big is your image?

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago

I tried different ones. Some are 300-400 kb and one is a bit more than 1 mb

[–] testAccount@lemmy.one 2 points 6 months ago (1 children)

@dessalines@lemmy.ml Do 403s from pictrs only come from failed authentication? or does it lump all failed requests under 403 such as bad format, image size?

[–] dessalines@lemmy.ml 2 points 6 months ago (1 children)

I'd have to double check, but I believe it's all errors. That could be size-related.

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago* (last edited 6 months ago) (2 children)

Hmm the images had an uncommon resolution of 1366*768 I think. And I just noticed none of them have the width/height numbers in their metadata. Could any of that be the reason?

[–] testEmailVerified@lemmy.world 2 points 6 months ago

That shouldn't be a problem, pictrs shouldn't be looking at the metadata.

[–] testEmailVerified@lemmy.world 2 points 6 months ago (1 children)

If this image uploads it's probably something else

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago (1 children)
[–] testEmailVerified@lemmy.world 2 points 6 months ago (1 children)

Hmm it could still be a permission issue but that would be on ourside to fix. Did you save this image in the same place as the others? If so can you try that. It might be that we don't ask correct permission on Android 13.

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago* (last edited 6 months ago) (1 children)

Tried moving the photos from Pictures to DCIM/Camera and rebooting the phone. Still the same error. Fun fact: if I revoke the app's permissions and try to upload a photo again, the error remains the same and the app doesn't ask to grant the permission (the pop-up doesn't appear)

[–] testEmailVerified@lemmy.world 1 points 6 months ago (1 children)

Wym same error? I meant the above picture that uploads fine. Does it still work after you move it to the location of the picture that doesn't work.

By default it saves the picture in location that should always be accessible by Jerboa

It is very possible that we don't properly handle it when it fails to receive permission. I'll take a look at it.

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago* (last edited 6 months ago) (1 children)

Mister, now I don't understand you either. I tried moving MY SCREENSHOTS to another folder and uploading them again. I didn't try to download and upload your photo of a kitten.

EDIT: the error fixed itself after I tried to upload your photo. Now all of them seem to upload without issues. I tried mine - didn't work. Then I tried yours and it worked. After that I tried mine again and it worked. Weird problem

[–] testEmailVerified@lemmy.world 1 points 6 months ago (1 children)

Which upload succeded then?

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago (1 children)
[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago (1 children)

Now everything seems to upload fine, no matter the folder and size:

[–] testEmailVerified@lemmy.world 1 points 6 months ago (1 children)

Maybe lemmy was having some issues?

[–] GolfNovemberUniform@lemmy.ml 1 points 6 months ago

I don't think so. I tried uploading 2 days ago, yesterday and today. It didn't work until I tried to download and upload your exact image