Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When uploading from gallery, path is broken because it's uploaded using background tasks #4488

Open
sentry-io bot opened this issue Aug 8, 2023 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 8, 2023

Sentry Issue: SMOOTHIE-2KY

OSError: OS Error: No such file or directory, errno = 2
PathNotFoundException: PathNotFoundException: Cannot open file, path = '/data/user/0/org.openfoodfacts.scanner/files/full_image_1223.jpeg' (OS Error: No such file or directory, errno = 2)
@monsieurtanuki
Copy link
Contributor

I don't know who invented that title but that doesn't seem fair.
AFAIK for the background tasks we copy whatever we get (camera, gallery) into an "app-local" file (in the current case, /data/user/0/org.openfoodfacts.scanner/files/) before running the background task (that will then send that file to the server).
Is this error systematic, like "Every time I try to upload a picture from the gallery on iOS, I have this error"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 💬 To discuss and validate
Development

No branches or pull requests

2 participants