Is your feature request related to a problem? Please describe.
My file.download calls often fail with 504 gatewayTimeout.
Guesstimating that this happens 1-5% of the time, over 1000s of calls per day.
Describe the solution you'd like
It would be nice if file.download had the same kind of retry handling that file.save has.
Describe alternatives you've considered
I have implemented my own retry logic on top of this library, and it's similar to how the retry logic is implemented for file.save.
Here's the relevant part of the error object I'm seeing:
ApiError {
code: 504,
errors: [ { message: '', domain: 'global', reason: 'gatewayTimeout' } ],
response: PassThrough {
_readableState: ReadableState {
objectMode: false,
...
Is your feature request related to a problem? Please describe.
My
file.downloadcalls often fail with 504 gatewayTimeout.Guesstimating that this happens 1-5% of the time, over 1000s of calls per day.
Describe the solution you'd like
It would be nice if
file.downloadhad the same kind of retry handling thatfile.savehas.Describe alternatives you've considered
I have implemented my own retry logic on top of this library, and it's similar to how the retry logic is implemented for
file.save.Here's the relevant part of the error object I'm seeing: