-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
ParseFile uploads multiple times #1178
Labels
type:bug
Impaired feature or lacking behavior that is likely assumed
Comments
Thanks for opening this issue!
|
UPD: adding huge write timeout has no effect
|
mtrezza
added
the
type:bug
Impaired feature or lacking behavior that is likely assumed
label
Aug 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Issue Description
Hello! I faced an issue when attached to an object file is uploaded several times.
Previously users reported an issue that some of them have an "infinite uploading spinner" on the screen. We decided to add progress and found this problem.
We have the following structure of the objects:
Video:
So to get the uploading progress the idea was to upload files first and calculate the average by taking the progress data callback of each file.
The code:
For the previewFile & videoFile progress should be in the range [0..200] so the progress value should be [0..100], but it is out of range (see logs below)
The suspendSave extension is pretty much the same that ParseSDK-ktx uses but with a callback
Pretty sure that callbacks are not the best option for the coroutine suspend functions, but I believe that is has no effect on this issue.
Steps to reproduce
Create ParseFile and save it with a progress callback, put the saved file into a new ParseObject, and save the object. It isn't reproducing on the object that doesn't have nested ParseObjects inside like Image and mostly with files larger than 20MB.
It isn't reproducing with a 100% chance, once it can happen when uploading is the first action user does and in another case (more frequently) when a user removes the video object before uploading (references, file paths of a new and an old object are different).
Actual Outcome
ParseFile uploads several times.
Expected Outcome
ParseFile uploads once, calling save() on an object doesn't trigger uploading files again.
Environment
AGP: 7.2.1
kotlin: 1.7.10
coroutines: 1.6.3
Parse Android SDK
4.0.0
12
Server
4.2.0
no info
no info
Database
no info
no info
no info
Logs
total progress output:
Files uploading log:
The text was updated successfully, but these errors were encountered: