libcloud icon indicating copy to clipboard operation
libcloud copied to clipboard

Retry on bad status code

Open maingoh opened this issue 5 years ago • 2 comments

Feature Request

It looks like we can activate a retry on some network errors, though I didn't find a way to retry automatically on some 5xx status code. It would be nice to set it from the driver constructor.

maingoh avatar Oct 12 '20 12:10 maingoh

This probably involve to raise specific exceptions that store the HTTP code instead of raising generic LibCloudError and parsing the code from in the error message https://github.com/apache/libcloud/blob/fe4f81b5a31a8f470ff6ba5af7451cccfc423c2b/libcloud/storage/base.py#L716

maingoh avatar Mar 03 '21 14:03 maingoh

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically marking is as stale. If this issue is not relevant or applicable anymore (problem has been fixed in a new version or similar), please close the issue or let us know so we can close it. On the contrary, if the issue is still relevant, there is nothing you need to do, but if you have any additional details or context which would help us when working on this issue, please include it as a comment to this issue.

stale[bot] avatar Jun 26 '21 03:06 stale[bot]