Skip to content

Retry logic not compatible with urllib3 Retry (requests adapter) #8

Description

@francescobianco

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions