-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Permanent error should stop Flow from sending chunks. #35
Comments
Meanwhile I've looked at the code and added this around line 1140-1154 to test the behaviour and it seems to solve the issue. Now if I receive a 409 (conflict) flow stops the upload process and marks it as an error.
(I've closed the issue by mistake) |
File testing does not support permanent error handling at the moment and this should be implemented. Line which is causing problems: |
Thanks for the reply @AidasK . I'll give it a stab this weekend. |
Should be fixed with c2080ef |
Would be nice to also update the documentation/README to describe how this can be done. Thanks! |
Do you/we want to abort on any errors? For example From this point of view, it would be nice if flow.js would allow configuring a list of error codes which has the semantic of "reject". I would say that we would need a list of rejectErrorCode = [409] and stop testing only if this specific error code is returned... for all other errors, retry. Thanks! |
We have such an option, it is called Unfortunately, request retry works only for upload requests. How file testing works:
In order to support retry feature for file testing, we need a separate status list, such as |
Many thanks! I think that copying your comment in the documentation would be a great improvement to the documentation :) |
HHi guys. First let me thank you all for this awesome lib.
I don't know if I'm interpreting this right but if a permanent error arouses shouldn't the chunks stop being sent to the server (using testChunks: true)?
I've added a CRC field using the preprocess method. I'm testing the CRC sent in every chunck at server side and replying with 409 if a chunk doesn't match, while one tries to resume a file. I've also added the 409 code as a permanent error.
The behaviour I'm noticing is that flow.js keeps sending chunks independently of the configured permanent errors.
Is this a issue or a misinterpretation of the feature?
The text was updated successfully, but these errors were encountered: