-
Notifications
You must be signed in to change notification settings - Fork 572
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
fix: throw on retry when payload is consume by downstream #3389
fix: throw on retry when payload is consume by downstream #3389
Conversation
f947d7f
to
9d41b62
Compare
this.abort( | ||
new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, { | ||
headers, | ||
data: { count: this.retryCount } | ||
}) | ||
) | ||
return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.abort( | |
new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, { | |
headers, | |
data: { count: this.retryCount } | |
}) | |
) | |
return false | |
throw new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, { | |
headers, | |
data: { count: this.retryCount } | |
}) | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure it should throw instead of similar to the others error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all errors should throw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a nit, you can leave it if you want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* fix: throw on retry when payload is consumed * fixup * fixup (cherry picked from commit 71121e5)
Close #3365 Fixes #3356
This relates to...
Rationale
Changes
Features
Bug Fixes
Breaking Changes and Deprecations
Status