>>> retry_config = Retry(
... total=max_retries,
... backoff_factor=1.0,
... backoff_max=retry_interval,
... # List of HTTP status codes to retry on in addition to Timeout/Connection Errors
... status_forcelist=[429, 500, 502, 503, 504],
... # List of HTTP methods to retry on
... # Omitting this will default to all methods except POST
... allowed_methods=['HEAD', 'GET', 'PUT', 'DELETE', 'OPTIONS', 'TRACE', 'POST'],
... )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Retry.__init__() got an unexpected keyword argument 'backoff_max
The tests from vpc-python-sdk recently started to failing. It fails on calling
enable_retries()
. I found that the culprit is python-sdk-core. Mainly https://github.com/IBM/python-sdk-core/blob/main/ibm_cloud_sdk_core/base_service.py#L134The code fails with:
The documentation mention this variable https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html but I checked the urllib3 source code and this param is not available in constructor. And never was! So this could not ever work.