-
Notifications
You must be signed in to change notification settings - Fork 611
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
Retries on 201 Created HTTP status code #208
Comments
I see where I can set permanent error codes but I don't see where I can change the action taken when receiving 201. Any pointers? |
The reason this is a pain is that the API is setup to take chunks from locations other than the web and I'm trying to avoid making all these exceptions for Resumable. Another pain point is not being able to customize the URL on a per-chunk basis and the inability to customize the default query parameter names. That said, I am really appreciating the ease of use that Resumable provides. |
You're right that it isn't easy to white-list replies -- you could send a pull request that make change in and around this line. |
The API I have setup has an endpoint like I've already added the exception to send a Thanks for the responses! |
A good approach to that would be to allow the
|
(I would like to add that I have a special interest in video services, upload apis and that kind of stuff -- considering that it's my day job and the reason Resumable was created. So if you want to and can share more about what you're building I'm very interested.) |
Sent you an email. |
@steffentchr were any changes ever made here? I'm experiencing the same issue. |
@axschech I never made a change based on this, but if you're looking into it please submit a pull request and I'm happy to bring it into core. |
Resumable.js retries uploading a chunk when it receives a
201 Created
response instead of continuing to the next chunk. If anything, 201 should be a more appropriate response for the successful uploading of a chunk than 200, right? Am I crazy and missing the logic here?The text was updated successfully, but these errors were encountered: