openapi-python-sdk
openapi-python-sdk copied to clipboard
Retry logic not compatible with urllib3 Retry (requests adapter)
Retry logic not compatible with urllib3 Retry (requests adapter)
Description
Cannot integrate SDK with urllib3 retry strategies.
Code snippet
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
retry = Retry(total=3)
adapter = HTTPAdapter(max_retries=retry)
session = requests.Session()
session.mount("https://", adapter)
client = Client("token")
Issue
No way to plug custom transport layer.
Hey @francescobianco ,
Check this PR #15
Check and Let me know !
@Deadpool2000 - Pull request successfully merged and closed! Thanks!