openapi-python-sdk icon indicating copy to clipboard operation
openapi-python-sdk copied to clipboard

Retry logic not compatible with urllib3 Retry (requests adapter)

Open francescobianco opened this issue 8 months ago • 2 comments

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.

francescobianco avatar Mar 18 '26 14:03 francescobianco

Hey @francescobianco ,

Check this PR #15

Check and Let me know !

Deadpool2000 avatar Apr 05 '26 09:04 Deadpool2000

@Deadpool2000 - Pull request successfully merged and closed! Thanks!

francescobianco avatar Apr 28 '26 14:04 francescobianco