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
Improve upload error handling #11
Comments
In addition: If there is an error with an uploaded file, retry the upload after 5 s (?). If this also fails, show the error. This can be helpful if the BIIGLE instance is updated during an upload und unavailable for a few seconds. |
@lehecht Can you please have a look at this sometime? I see quite a few errors where file uploads abort because the object storage temporarily doesn't work. A simple retry and better error handling would be nice. The retry should also be done for chunked large files. |
There is already a mechanism to retry the image upload. Should I replace this with your idea or maybe just increase the number of retries? |
This issue is about the client-side upload. It works like this:
The retry you linked is from Server to Storage. This issue is about a retry and better error handling from Client to Server. Maybe it has a retry mechanism, too (I don't remember and didn't look), but the "skip or cancel" popup should also be added. |
On second thought, a popup immediately after the error might not be the ideal solution. I imagine sometimes people just let large volumes of data upload unsupervised (e.g. over night). Then they come back in the morning and see an error after the first file and the popup, so the rest of the files were not uploaded. A better way would be to automatically skip files with errors and then at the end (when all files without errors were uploaded) show a popup asking to retry or skip the failed files. |
What I meant was, if I should replace the number of retries by the 'retry after 5 s'-idea (on the client side). |
Is there a retry mechanism on the client side then? The Server to Storage retry mechanism should not be changed. The client side retry mechanism can have the 5 s delay. |
Yes, there it uses also 2 retries. |
So should I replace the former mechanism or add this delay? |
I see, thanks. Please add the delay to the existing mechanism and increase the number of retries to 3. Then add the mechanism of first skipping failed uploads and finally asking to retry or skip all failed files described above. You can create two separate PRs for this, so the first change is published more quickly. |
I like your idea! Some additional thoughts:
|
Should I extend the fileBrowser component and its used components or apply the changes directly in these core files? |
It's probably easier to update the core files, right? You can add a new optional property |
I suggest that you just change the color of the whole filename. Instead of showing "failed", you could replace the file icon with something else, e.g. a warning sign. |
Also the directory tree above the failed file should be colored (but without warning icon). |
Improve the upload error handling as follows: If there is an error for an uploaded file, show a popup displaying the error (and the filename). The popup should offer an option to cancel the upload or to skip this file and continue with the remaining files.
The text was updated successfully, but these errors were encountered: