You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A warning is logged while using msrest where urllib3 issues: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
#237
Open
harneetvirk opened this issue
Mar 26, 2021
· 0 comments
A warning is logged while using msrest where urllib3 issues DeprecationWarning about using 'method_whitelist' with Retry
DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
Here is the code:
msrest-for-python/msrest/universal_http/requests.py
Line 353 in 98e2ebe
Proposal is to allow use of both parameters based on the version of the urllib3 like inline:
if urllib3_version < "1.26.0":
method_whitelist=RETRY_METHODS,
status_forcelist=RETRY_STATUS_CODES,
raise_on_status=False,
)
else:
DEFAULT_RETRY = Retry(
total=MAX_RETRY,
backoff_factor=RETRY_BACKOFF_FACTOR,
allowed_methods=RETRY_METHODS,
status_forcelist=RETRY_STATUS_CODES,
raise_on_status=False,
)
The text was updated successfully, but these errors were encountered: